A field is a section of a Document. Each field has two parts, a name and a value. Values may be free text, provided as a String or as a Reader, or they may be atomic keywords, which are not further processed. Such keywords may be used to represent dates, urls, etc. Fields are optionally stored in the index, so that they may be returned with hits on the document.

The Field..::..Store type exposes the following members.

Methods

  NameDescription
Public methodEquals
Resolves the deserialized instance to the local reference for accurate equals() and == comparisons.
(Inherited from Parameter.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Inherited from Parameter.)

Fields

  NameDescription
Public fieldStatic memberCOMPRESS
Store the original field value in the index in a compressed form. This is useful for long documents and for binary valued fields.
Public fieldStatic memberNO
Do not store the field value in the index.
Public fieldStatic memberYES
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.

See Also