Marjan Celikik a écrit :
Hi everyone,

I know that there are packages that support the "Did you mean ... ?"
search features with lucene which tries to find the most suited
correct-word query.. however, so far I haven't encountered the opposite
search feature: given a correct query, find all documents which contain
misspellings of the query.. are you guys aware of anything like this
with lucene?
You have to iterate over your query, if it's a BooleanQuery, keep it, if it's a TermQuery, replace it with a BooleanQuery with all variants of the Term with Occur.SHOULD

M.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to