lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <>
Subject Re: Start/end offsets in analyzers
Date Wed, 28 Mar 2007 22:26:09 GMT
Thanks Erik.  For our purposes it seems more generally useful to use the 
original start/end offsets.

Erik Hatcher wrote:
> They aren't used implicitly by anything in Lucene, but can be very handy 
> for efficient highlighting.  Where you set the offsets really all 
> depends on how you plan on using the offset values.  In the synonym 
> example you mention, if the original word is "dog" and the user searched 
> for "canine", to properly highlight the word "dog" in the original text 
> the offsets for "canine" need to be where "dog" is.
>     Erik

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

View raw message