You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Sidhant Aggarwal <si...@me.com> on 2018/02/26 15:30:57 UTC
Partial SpellChecking
I am using Lucene to perform spell checking. I am using
https://lucene.apache.org/core/5_4_1/suggest/org/apache/lucene/search/spell/SpellChecker.html
What I really want is, for example, I have a word:
spellingmistake
And now I type:
speli.
In this case, I want to spellchecker to return me the correct word or at least return spell. So to achieve this while indexing the dictionary in the indexwriter config I used a EdgeNGramTokenizer assuming it would work for this case. But unfortunately, it is not working.
How do I get this working?
Thanks,
Sidhant