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 ChadDavis <ch...@gmail.com> on 2008/11/07 22:36:18 UTC

Store versus Index

I just need a little confirmation of my understanding here.

If i say that a field is to be stored, the entire thing is written to the
index.  It might also be indexed in a tokenized fasion if i also specify
that.

What are the advantages to storing a field then?
So you can search for that field?
Just so you can retrieve that field's value when you get a hit on the
document via another field?

Also along thes lines, if i don't "store" a field, can I still do my search
based upon that field?

Re: Store versus Index

Posted by Yonik Seeley <yo...@apache.org>.
On Fri, Nov 7, 2008 at 4:36 PM, ChadDavis <ch...@gmail.com> wrote:
> I just need a little confirmation of my understanding here.
>
> If i say that a field is to be stored, the entire thing is written to the
> index.  It might also be indexed in a tokenized fasion if i also specify
> that.

Right.

> What are the advantages to storing a field then?
> So you can search for that field?

Only if it is indexed.... it has nothing to do with it being stored.

> Just so you can retrieve that field's value when you get a hit on the
> document via another field?

Correct.

> Also along thes lines, if i don't "store" a field, can I still do my search
> based upon that field?

Yes.

-Yonik

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