Package org.elasticsearch.index.mapper
Class CustomTermFreqField
java.lang.Object
org.apache.lucene.document.Field
org.elasticsearch.index.mapper.CustomTermFreqField
- All Implemented Interfaces:
org.apache.lucene.index.IndexableField
public final class CustomTermFreqField
extends org.apache.lucene.document.Field
Custom field that allows storing an integer value as a term frequency in lucene.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.document.Field
org.apache.lucene.document.Field.Store
-
Field Summary
Fields inherited from class org.apache.lucene.document.Field
fieldsData, name, tokenStream, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setFieldValue
(int fieldValue) org.apache.lucene.analysis.TokenStream
tokenStream
(org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.analysis.TokenStream reuse) Methods inherited from class org.apache.lucene.document.Field
binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStreamValue, toString
-
Constructor Details
-
CustomTermFreqField
-
-
Method Details
-
setFieldValue
public void setFieldValue(int fieldValue) -
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.analysis.TokenStream reuse) - Specified by:
tokenStream
in interfaceorg.apache.lucene.index.IndexableField
- Overrides:
tokenStream
in classorg.apache.lucene.document.Field
-