Search code examples
luceneautocorrect

Autocorrect using Apache LUCENE


I am using apache lucene for a project to do the autocorrect functionality. I need the suggestions to come up only if the spelling is wrong.
In apache Lucene, I can see that suggesions are coming up even if the spelling is typed right and wrong. How can I eliminate suggestions for right entry?


Solution

  • Found it....

    there is a function called SpellChecker.exist()