All Implemented Interfaces:
java$io$Serializable
All Known Implementing Classes:
AbstractField, Field, NumericField, LazyField
Method from org.apache.lucene.document.Fieldable Summary: |
---|
getBinaryLength, getBinaryOffset, getBinaryValue, getBinaryValue, getBoost, getOmitNorms, getOmitTermFreqAndPositions, isBinary, isIndexed, isLazy, isStoreOffsetWithTermVector, isStorePositionWithTermVector, isStored, isTermVectorStored, isTokenized, name, readerValue, setBoost, setOmitNorms, setOmitTermFreqAndPositions, stringValue, tokenStreamValue |
Method from org.apache.lucene.document.Fieldable Detail: |
---|
|
|
|
About reuse: if you pass in the result byte[] and it is used, likely the underlying implementation will hold onto this byte[] and return it in future calls to #getBinaryValue() . So if you subsequently re-use the same byte[] elsewhere it will alter this Fieldable's value. |
The default value is 1.0. Note: this value is not stored directly with the document in the index. Documents returned from org.apache.lucene.index.IndexReader#document(int) and org.apache.lucene.search.Searcher#doc(int) may thus not have the same value present as when this field was indexed. |
|
|
|
|
|
|
|
|
stored attribute instead. |
|
|
|
The boost is multiplied by org.apache.lucene.document.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 used to compute the norm factor for the field. By default, in the org.apache.lucene.search.Similarity#computeNorm(String, FieldInvertState) method, the boost value is multiplied by the org.apache.lucene.search.Similarity#lengthNorm(String, int) and then rounded by org.apache.lucene.search.Similarity#encodeNorm(float) before it is stored in the index. One should attempt to ensure that this product does not overflow the range of that encoding. |
|
NOTE: While this option reduces storage space required in the index, it also means any query requiring positional information, such as PhraseQuery or SpanQuery subclasses will silently fail to find results. |
For indexing, if isStored()==true, the stringValue() will be used as the stored field value unless isBinary()==true, in which case getBinaryValue() will be used. If isIndexed()==true and isTokenized()==false, this String value will be indexed as a single token. If isIndexed()==true and isTokenized()==true, then tokenStreamValue() will be used to generate indexed tokens if not null, else readerValue() will be used to generate indexed tokens if not null, else stringValue() will be used to generate tokens. |
|