lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
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?

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message