lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <jans...@parc.com>
Subject Re: Fetch Documents Without Retrieveing All Fields
Date Mon, 10 Apr 2006 15:34:29 GMT
In case anyone else was wondering:

I got curious about how one would replace FieldCache, and discovered
that you can create an instance of a class which implements
FieldCache, and then simply assign it to
org.apache.lucene.search.FieldCache.DEFAULT.

> 2) your use case sounds like it could best be served by leveraging the
> FieldCache -- as long as each document contains only one value for the
> DBID field, and as long as you index the DBID field, you can use the
> FieldCache for that field (along with a HitCollector, or
> TopDocs/TopFieldDocs) to access the DBID of every doc much faster then you
> can get the stored value.

Bill

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


Mime
View raw message