lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Noll <>
Subject Re: highlighting - fuzzy search
Date Thu, 06 Apr 2006 23:20:47 GMT
Fisheye wrote:
>         HashSet terms = new HashSet();
>         query.rewrite(reader).extractTerms(terms); 
> Ok, but this delivers every term, not just a list of words the Levenshtein
> algorithm produced with similarity.

I asked a similar thing in the past about term highlighting in general, 
and apparently it's just as fast to get all terms and then highlight 
those terms in your text, as it is to determine which terms are in the 
text without looking at the text, and then highlight those.

The terms which aren't in the text just won't result in any highlights.


Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web:                        Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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

View raw message