7 #ifndef ABSTRACTFIELD_H
8 #define ABSTRACTFIELD_H
53 INDEX_ANALYZED_NO_NORMS
77 TERM_VECTOR_WITH_POSITIONS_OFFSETS
127 virtual void setBoost(
double boost);
136 virtual double getBoost();
139 virtual String name();
143 virtual bool isStored();
146 virtual bool isIndexed();
150 virtual bool isTokenized();
156 virtual bool isTermVectorStored();
160 virtual bool isStoreOffsetWithTermVector();
163 virtual bool isStorePositionWithTermVector();
166 virtual bool isBinary();
171 virtual ByteArray getBinaryValue();
176 virtual ByteArray getBinaryValue(ByteArray result);
181 virtual int32_t getBinaryLength();
186 virtual int32_t getBinaryOffset();
189 virtual bool getOmitNorms();
192 virtual bool getOmitTermFreqAndPositions();
196 virtual void setOmitNorms(
bool omitNorms);
203 virtual void setOmitTermFreqAndPositions(
bool omitTermFreqAndPositions);
210 virtual bool isLazy();
213 virtual String toString();
216 void setStoreTermVector(
TermVector termVector);
bool _isBinary
Definition: AbstractField.h:97
FieldsData fieldsData
Definition: AbstractField.h:103
bool _isTokenized
Definition: AbstractField.h:96
bool _omitNorms
Definition: AbstractField.h:93
double boost
Definition: AbstractField.h:100
String _name
Definition: AbstractField.h:89
Store the original field value in the index. This is useful for short texts like a document's title w...
Definition: AbstractField.h:21
bool _isIndexed
Definition: AbstractField.h:95
Synonymous with Field.
Definition: Fieldable.h:20
Store the term vector + token offset information.
Definition: AbstractField.h:71
Index the tokens produced by running the field's value through an Analyzer. This is useful for common...
Definition: AbstractField.h:35
int32_t binaryLength
Definition: AbstractField.h:109
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Index the field's value without using an Analyzer, so it can be searched. As no analyzer is used the ...
Definition: AbstractField.h:39
bool storeOffsetWithTermVector
Definition: AbstractField.h:91
Definition: AbstractField.h:14
Index
Specifies whether and how a field should be indexed.
Definition: AbstractField.h:28
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Do not index the field value. This field can thus not be searched, but one can still access its conte...
Definition: AbstractField.h:31
Definition: AbstractAllTermDocs.h:12
bool _isStored
Definition: AbstractField.h:94
bool lazy
Definition: AbstractField.h:98
bool omitTermFreqAndPositions
Definition: AbstractField.h:99
TokenStreamPtr tokenStream
Definition: AbstractField.h:106
Store the term vectors of each document. A term vector is a list of the document's terms and their nu...
Definition: AbstractField.h:63
TermVector
Specifies whether and how a field should have term vectors.
Definition: AbstractField.h:57
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63
Store the term vector + token position information.
Definition: AbstractField.h:67
bool storePositionWithTermVector
Definition: AbstractField.h:92
Do not store term vectors.
Definition: AbstractField.h:59
Store
Specifies whether and how a field should be stored.
Definition: AbstractField.h:17
bool storeTermVector
Definition: AbstractField.h:90
Index the field's value without an Analyzer, and also disable the storing of norms. Note that you can also separately enable/disable norms by calling Field#setOmitNorms. No norms means that index-time field and document boosting and field length normalization are disabled. The benefit is less memory usage as norms take up one byte of RAM per indexed field for every document in the index, during searching. Note that once you index a given field with norms enabled, disabling norms will have no effect. In other words, for this to have the above described effect on a field, all instances of that field must be indexed with NOT_ANALYZED_NO_NORMS from the beginning.
Definition: AbstractField.h:48
int32_t binaryOffset
Definition: AbstractField.h:110