lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: [jira] Field constructor, avoiding String.intern()
Date Fri, 23 Feb 2007 22:45:39 GMT

: 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.

i make no judgements about the merits of intern(), but i would like to
reiterate Doug's point (if you are using the Document class in a
HitCollector you are probably dong something wrong) and make a suggestion:

*If* people agree that interning field names makes sense when
indexing Documents, but does not make sense when dealing when reading
Documents out of an IndexReader/IndexSearche then this sounds like yet
another justification for seperating the implimentations of those use

...having an "option" when Documents/Fields are constructed to determine
wether intern is called seems .... odd.


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

View raw message