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 12:54:45 GMT

On Apr 4, 2006, at 8:30 AM, Fisheye wrote:
> Is it possible to get back a highlighted text "snippet" when using  
> fuzzy
> search? I mean where does lucene stores the similar words to the  
> search
> query? If I know where these words are, I can use one of these  
> words to
> highlight.

You mean using a FuzzyQuery (fuzzy~ in QueryParser syntax)?  For any  
query which expands to multiple terms, a rewrite of the Query is  
needed before the Highlighter can do its thing.  Look at Query.rewrite 


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

View raw message