You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Oskar Berger <os...@agent25.se> on 2006/04/25 10:18:58 UTC

Accessing fields during search

Hello masters,

What is the most efficient approach to access field values during a
search?

I am only interested in accessing a couple of fields for counting, and
am thus not in need of storing the values as if sorting on the fields.

Where to look?

Regards,
/oskar


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


Re: Accessing fields during search

Posted by Yonik Seeley <ys...@gmail.com>.
On 4/25/06, Oskar Berger <os...@agent25.se> wrote:
> What is the most efficient approach to access field values during a
> search?

If you are implementing a hit collector, and want to know a field
value for each document coming in, you can use the FieldCache if the
field is indexed and not tokenized.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

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