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..::..TermVector 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 memberNO
Do not store term vectors.
Public fieldStatic memberWITH_OFFSETS
Store the term vector + Token offset information
Public fieldStatic memberWITH_POSITIONS
Store the term vector + token position information
Public fieldStatic memberWITH_POSITIONS_OFFSETS
Store the term vector + Token position and offset information
Public fieldStatic memberYES
Store the term vectors of each document. A term vector is a list of the document's terms and their number of occurrences in that document.

See Also