lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Aschoff <>
Subject Problems with stemming/SpellChecker
Date Fri, 12 Oct 2007 13:48:23 GMT

i tried to implement a 'did you mean'-function (and successed in some  
way). But the hints from the SpellChecker are the stemmed versions of  
the keywords.

For example, the search for the wrong word 'wasseraalfingen' results  
in the hint 'wasseralfing' but should be 'wasseralfingen'. My first  
try was to use a field with the option 'NO_NORMS' but that did not  

             indexWriter = new IndexWriter(MiscConstants.luceneDir,  
new GermanAnalyzer(), create);
             Field didyoumean = new Field 
(LuceneFieldNames.didyoumean, content.toString(), Field.Store.YES,  
Field.Index.NO_NORMS, Field.TermVector.NO);
         IndexReader indexReader = 
         SpellChecker spellChecker = new SpellChecker 
         spellChecker.indexDictionary(new LuceneDictionary 
(indexReader, LuceneFieldNames.didyoumean));

Has anyone a suggestion how i can get 'unstemmed' hints from  
SpellChecker? Do i have to create some kind of 'unstemmed' index just  
for the creation of the SpellCheckers-index?

Christian Aschoff

Dipl. Ing. (FH) Christian Aschoff

Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm

Tel. 0731 50-22432
Fax. 0731 50-22471

Fabristr. 13
89075 Ulm
Deutschland/Old Europe

Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04

Helfen Sie mit:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message