lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Document contents split among different Fields
Date Thu, 23 Sep 2004 21:23:27 GMT
Greg Langmead wrote:
> Am I right in saying that the design of Token's support for highlighting
> really only supports having the entire document stored as one monolithic
> "contents" Field?

No, I don't think so.

> Has anyone tackled indexing multiple content Fields
> before that could shed some light?

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?


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

View raw message