stored attribute instead.
*
* @see IndexReader#getTermFreqVector(int32_t, String)
*/
bool isTermVectorStored() const;
/**
* True iff terms are stored as term vector together with their offsets
* (start and end positon in source text).
*/
bool isStoreOffsetWithTermVector() const;
/**
* True iff terms are stored as term vector together with their token positions.
*/
bool isStorePositionWithTermVector() const;
/** Returns the boost factor for hits for this field.
*
* The default value is 1.0. * *
Note: this value is not stored directly with the document in the index. * Documents returned from {@link IndexReader#document(int)} and * {@link Hits#doc(int)} may thus not have the same value present as when * this field was indexed. * * @see #setBoost(float_t) */ float_t getBoost() const; /** Sets the boost factor hits on this field. This value will be * multiplied into the score of all hits on this this field of this * document. * *
The boost is multiplied by {@link Document#getBoost()} of the document * containing this field. If a document has multiple fields with the same * name, all such values are multiplied together. This product is then * multipled by the value {@link Similarity#lengthNorm(String,int)}, and * rounded by {@link Similarity#encodeNorm(float_t)} before it is stored in the * index. One should attempt to ensure that this product does not overflow * the range of that encoding. * * @see Document#setBoost(float_t) * @see Similarity#lengthNorm(String, int) * @see Similarity#encodeNorm(float_t) */ void setBoost(const float_t value); /** True if the value of the filed is stored as binary */ bool isBinary() const; /** True if norms are omitted for this indexed field */ bool getOmitNorms() const; /** Expert: * * If set, omit normalization factors associated with this indexed field. * This effectively disables indexing boosts and length normalization for this field. */ void setOmitNorms(const bool omitNorms); /** * Indicates whether a Field is Lazy or not. The semantics of Lazy loading are such that if a Field is lazily loaded, retrieving * it's values via {@link #stringValue()} or {@link #binaryValue()} is only valid as long as the {@link org.apache.lucene.index.IndexReader} that * retrieved the {@link Document} is still open. * * @return true if this field can be loaded lazily */ bool isLazy() const; /** Prints a Field for human consumption. */ TCHAR* toString(); /**
Expert: change the value of this field. This can * be used during indexing to re-use a single Field * instance to improve indexing speed by avoiding GC cost * of new'ing and reclaiming Field instances. Typically * a single {@link Document} instance is re-used as * well. This helps most on small documents.
* *Note that you should only use this method after the * Field has been consumed (ie, the {@link Document} * containing this Field has been added to the index). * Also, each Field instance should only be used once * within a single {@link Document} instance. See ImproveIndexingSpeed * for details.
* * @memory Caller is responsible for releasing value if duplicateValue == false */ void setValue(TCHAR* value, const bool duplicateValue = true); /** Expert: change the value of this field. See setValue(TCHAR*). */ void setValue(CL_NS(util)::Reader* value); /** Expert: change the value of this field. See setValue(TCHAR*). */ void setValue(CL_NS(util)::ValueArray