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
Name | Description | |
---|---|---|
Equals | Resolves the deserialized instance to the local reference for accurate
equals() and == comparisons.
(Inherited from Parameter.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | (Inherited from Parameter.) |
Fields
Name | Description | |
---|---|---|
NO | Do not store term vectors. | |
WITH_OFFSETS | Store the term vector + Token offset information
| |
WITH_POSITIONS | Store the term vector + token position information
| |
WITH_POSITIONS_OFFSETS | Store the term vector + Token position and offset information
| |
YES | 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.
|