Package org.apache.solr.legacy
Class LegacyFieldType
java.lang.Object
org.apache.lucene.document.FieldType
org.apache.solr.legacy.LegacyFieldType
- All Implemented Interfaces:
org.apache.lucene.index.IndexableFieldType
Deprecated.
FieldType extension with support for legacy numerics
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a new FieldType with default properties.Deprecated.Create a new mutable LegacyFieldType with all of the properties fromref -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.inthashCode()Deprecated.intDeprecated.Please switch toPointValuesinsteadDeprecated.Please switch toPointValuesinsteadvoidsetNumericPrecisionStep(int precisionStep) Deprecated.Please switch toPointValuesinsteadvoidDeprecated.Please switch toPointValuesinsteadtoString()Deprecated.Prints a Field for human consumption.Methods inherited from class org.apache.lucene.document.FieldType
checkIfFrozen, docValuesSkipIndexType, docValuesType, freeze, getAttributes, indexOptions, omitNorms, pointDimensionCount, pointIndexDimensionCount, pointNumBytes, putAttribute, setDimensions, setDimensions, setDocValuesSkipIndexType, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, setVectorAttributes, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, vectorDimension, vectorEncoding, vectorSimilarityFunction
-
Constructor Details
-
LegacyFieldType
Deprecated.Create a new mutable LegacyFieldType with all of the properties fromref -
LegacyFieldType
public LegacyFieldType()Deprecated.Create a new FieldType with default properties.
-
-
Method Details
-
setNumericType
Deprecated.Please switch toPointValuesinsteadSpecifies the field's numeric type.- Parameters:
type- numeric type, or null if the field has no numeric type.- Throws:
IllegalStateException- if this FieldType is frozen against future modifications.- See Also:
-
numericType
Deprecated.Please switch toPointValuesinsteadLegacyNumericType: if non-null then the field's value will be indexed numerically so thatLegacyNumericRangeQuerycan be used at search time.The default is
null(no numeric type)- See Also:
-
setNumericPrecisionStep
Deprecated.Please switch toPointValuesinsteadSets the numeric precision step for the field.- Parameters:
precisionStep- numeric precision step for the field- Throws:
IllegalArgumentException- if precisionStep is less than 1.IllegalStateException- if this FieldType is frozen against future modifications.- See Also:
-
numericPrecisionStep
Deprecated.Please switch toPointValuesinsteadPrecision step for numeric field.This has no effect if
numericType()returns null.The default is
LegacyNumericUtils.PRECISION_STEP_DEFAULT- See Also:
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classorg.apache.lucene.document.FieldType
-
equals
Deprecated.- Overrides:
equalsin classorg.apache.lucene.document.FieldType
-
toString
Deprecated.Prints a Field for human consumption.- Overrides:
toStringin classorg.apache.lucene.document.FieldType
-
PointValuesinstead