lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu Lecarme <>
Subject Re: Error tolerant text search with Lucene?
Date Fri, 04 Apr 2008 11:49:47 GMT
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


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

View raw message