lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
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:

	<http://svn.apache.org/repos/asf/lucene/java/trunk/src/java/org/ 
apache/lucene/search/FuzzyTermEnum.java>

Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message