lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: [jira] Field constructor, avoiding String.intern()
Date Fri, 23 Feb 2007 18:54:26 GMT
James Kennedy wrote:
> True. However, in the case where you are processing Documents one at a time 
> and discarding them (e.g. We use hitCollector to process all documents from
> a search), or memory is not an issue, it would be nice to have the ability
> to disable the interning for performance sake.

Accessing documents from a hit-collector is not advised.  It is 
generally best to compose queries and filters to reduce the number of 
matches.  When that's not feasible, a hit collector that uses a 
FieldCache to filter by or collect field values is much faster than 
accessing documents.


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

View raw message