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.
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
