lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: highlighting - fuzzy search
Date Tue, 04 Apr 2006 20:55:57 GMT

On Apr 4, 2006, at 11:23 AM, Fisheye wrote:
> Probably, do you know if there is a possibility to get the similar  
> words
> generated by the algorithm when doing fuzzy search?

Well, a roundabout way is to simply create a FuzzyQuery, rewrite it,  
cast it to a BooleanQuery and use the BooleanQuery API to extract the  
TermQuery objects and the Term within the TermQuery has what you're  
looking for.  That's actually not a bad way to go, but you could also  
go more low-level and borrow the technique used under FuzzyQuery itself:



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

View raw message