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 public final class LegacyFieldType extends org.apache.lucene.document.FieldType
Deprecated.Please switch toPointValues
insteadFieldType extension with support for legacy numerics
-
-
Constructor Summary
Constructors Constructor Description LegacyFieldType()
Deprecated.Create a new FieldType with default properties.LegacyFieldType(LegacyFieldType ref)
Deprecated.Create a new mutable LegacyFieldType with all of the properties fromref
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
Deprecated.int
hashCode()
Deprecated.int
numericPrecisionStep()
Deprecated.Please switch toPointValues
insteadLegacyNumericType
numericType()
Deprecated.Please switch toPointValues
insteadvoid
setNumericPrecisionStep(int precisionStep)
Deprecated.Please switch toPointValues
insteadvoid
setNumericType(LegacyNumericType type)
Deprecated.Please switch toPointValues
insteadString
toString()
Deprecated.Prints a Field for human consumption.-
Methods inherited from class org.apache.lucene.document.FieldType
checkIfFrozen, docValuesType, freeze, getAttributes, indexOptions, omitNorms, pointDimensionCount, pointIndexDimensionCount, pointNumBytes, putAttribute, setDimensions, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, setVectorDimensionsAndSimilarityFunction, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, vectorDimension, vectorSimilarityFunction
-
-
-
-
Constructor Detail
-
LegacyFieldType
public LegacyFieldType(LegacyFieldType ref)
Deprecated.Create a new mutable LegacyFieldType with all of the properties fromref
-
LegacyFieldType
public LegacyFieldType()
Deprecated.Create a new FieldType with default properties.
-
-
Method Detail
-
setNumericType
@Deprecated public void setNumericType(LegacyNumericType type)
Deprecated.Please switch toPointValues
insteadSpecifies 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()
-
numericType
@Deprecated public LegacyNumericType numericType()
Deprecated.Please switch toPointValues
insteadLegacyNumericType: if non-null then the field's value will be indexed numerically so thatLegacyNumericRangeQuery
can be used at search time.The default is
null
(no numeric type)- See Also:
setNumericType(LegacyNumericType)
-
setNumericPrecisionStep
@Deprecated public void setNumericPrecisionStep(int precisionStep)
Deprecated.Please switch toPointValues
insteadSets 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()
-
numericPrecisionStep
@Deprecated public int numericPrecisionStep()
Deprecated.Please switch toPointValues
insteadPrecision step for numeric field.This has no effect if
numericType()
returns null.The default is
LegacyNumericUtils.PRECISION_STEP_DEFAULT
- See Also:
setNumericPrecisionStep(int)
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classorg.apache.lucene.document.FieldType
-
equals
public boolean equals(Object obj)
Deprecated.- Overrides:
equals
in classorg.apache.lucene.document.FieldType
-
toString
public String toString()
Deprecated.Prints a Field for human consumption.- Overrides:
toString
in classorg.apache.lucene.document.FieldType
-
-