Interface IndexableFieldType
- All Known Implementing Classes:
FieldType
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionWhether a skip index for doc values should be created on this field.DocValuesDocValuesType: how the field's value will be indexed into docValues.Attributes for the field type.IndexOptions, describing what should be recorded into the inverted indexbooleanTrue if normalization values should be omitted for the field.intIf this is positive (representing the number of point dimensions), the field is indexed as a point.intThe number of dimensions used for the index keyintThe number of bytes in each dimension's values.booleanstored()True if the field's value should be storedbooleanTrue if this field's token character offsets should also be stored into term vectors.booleanTrue if this field's token payloads should also be stored into the term vectors.booleanTrue if this field's token positions should also be stored into the term vectors.booleanTrue if this field's indexed form should be also stored into term vectors.booleanTrue if this field's value should be analyzed by theAnalyzer.intThe number of dimensions of the field's vector valueTheVectorEncodingof the field's vector valueTheVectorSimilarityFunctionof the field's vector value
-
Method Details
-
stored
boolean stored()True if the field's value should be stored -
tokenized
boolean tokenized()True if this field's value should be analyzed by theAnalyzer.This has no effect if
indexOptions()returns IndexOptions.NONE. -
storeTermVectors
boolean storeTermVectors()True if this field's indexed form should be also stored into term vectors.This builds a miniature inverted-index for this field which can be accessed in a document-oriented way from
TermVectors.get(int,String).This option is illegal if
indexOptions()returns IndexOptions.NONE. -
storeTermVectorOffsets
boolean storeTermVectorOffsets()True if this field's token character offsets should also be stored into term vectors.This option is illegal if term vectors are not enabled for the field (
storeTermVectors()is false) -
storeTermVectorPositions
boolean storeTermVectorPositions()True if this field's token positions should also be stored into the term vectors.This option is illegal if term vectors are not enabled for the field (
storeTermVectors()is false). -
storeTermVectorPayloads
boolean storeTermVectorPayloads()True if this field's token payloads should also be stored into the term vectors.This option is illegal if term vector positions are not enabled for the field (
storeTermVectors()is false). -
omitNorms
boolean omitNorms()True if normalization values should be omitted for the field.This saves memory, but at the expense of scoring quality (length normalization will be disabled), and if you omit norms, you cannot use index-time boosts.
-
indexOptions
IndexOptions indexOptions()IndexOptions, describing what should be recorded into the inverted index -
docValuesType
DocValuesType docValuesType()DocValuesDocValuesType: how the field's value will be indexed into docValues. -
docValuesSkipIndexType
DocValuesSkipIndexType docValuesSkipIndexType()Whether a skip index for doc values should be created on this field. -
pointDimensionCount
int pointDimensionCount()If this is positive (representing the number of point dimensions), the field is indexed as a point. -
pointIndexDimensionCount
int pointIndexDimensionCount()The number of dimensions used for the index key -
pointNumBytes
int pointNumBytes()The number of bytes in each dimension's values. -
vectorDimension
int vectorDimension()The number of dimensions of the field's vector value -
vectorEncoding
VectorEncoding vectorEncoding()TheVectorEncodingof the field's vector value -
vectorSimilarityFunction
VectorSimilarityFunction vectorSimilarityFunction()TheVectorSimilarityFunctionof the field's vector value -
getAttributes
Attributes for the field type.Attributes are not thread-safe, user must not add attributes while other threads are indexing documents with this field type.
- Returns:
- Map
-