lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Document contents split among different Fields
Date Thu, 23 Sep 2004 22:59:14 GMT
On Sep 23, 2004, at 6:00 PM, Greg Langmead wrote:
> Doug Cutting wrote:
>> Do you need highlights from all fields?  If so, then you can use:
>>    TextFragment[] getBestTextFragments(TokenStream, ...);
>> with a TokenStream for each field, then select the highest scoring
>> fragments across all fields.  Would that work for you?
> Thanks for the reply.  I can't find code like this in the lucene or
> lucene-demo packages -- is this something implemented, or did you mean 
> it as
> an example?

TextFragment is part of the Highlighter contribution in the 
jakarta-lucene-sandbox CVS repository.  Check it out and you'll have 
what Doug is speaking of.


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

View raw message