Hi,

I'm trying to understand the members of the Field class.  According to
http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/document/Field.html
:

Field.Index.NO implies:

Do not index the field value. This field can thus not be searched, but one
can still access its contents provided it is
stored<http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/document/Field.Store.html>.


But Field.Store.YES implies:

Store the original field value in the index. This is useful for short texts
like a document's title which should be displayed with the results. The
value is stored in its original form, i.e. no analyzer is used before it is
stored.

I'm not sure I understand the relationship between indexing and storing.
According to the above:  I can still access a field's content if I have not
indexed its value, as long as I have stored that field.  But storing a field
is by definition "storing the original field value in the index."

*scratches head*

What is the difference between "indexing a field value" and "storing an
original field value in the index"?

-John

Reply via email to