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 a peng <zh...@gmail.com> on 2010/07/12 10:12:24 UTC
How to implement fuzzy phrase search with Lucene?
Hi, I have a requirement recently to implement fuzzy phrase, for example, in
the indexed document there is a sentence "I like lucene very much". And when
I search "I do like lucene very much" or "I like lucene much", I both want
to get the search result, can someone guide me how to implement this
feature?
I was trying to use PhraseQuery and setSlop method to implement this, but
found that if the search phrase contains a word that does't exist in the
indexed document, then I can not get any search result.
Thanks in advance.
Jason