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 toPointValuesinsteadFieldType 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 booleanequals(Object obj)Deprecated.inthashCode()Deprecated.intnumericPrecisionStep()Deprecated.Please switch toPointValuesinsteadLegacyNumericTypenumericType()Deprecated.Please switch toPointValuesinsteadvoidsetNumericPrecisionStep(int precisionStep)Deprecated.Please switch toPointValuesinsteadvoidsetNumericType(LegacyNumericType type)Deprecated.Please switch toPointValuesinsteadStringtoString()Deprecated.Prints a Field for human consumption.-
Methods inherited from class org.apache.lucene.document.FieldType
checkIfFrozen, docValuesType, freeze, getAttributes, indexOptions, omitNorms, pointDataDimensionCount, pointIndexDimensionCount, pointNumBytes, putAttribute, setDimensions, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized
-
-
-
-
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 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()
-
numericType
@Deprecated public LegacyNumericType 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:
setNumericType(LegacyNumericType)
-
setNumericPrecisionStep
@Deprecated public void setNumericPrecisionStep(int precisionStep)
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()
-
numericPrecisionStep
@Deprecated public int 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:
setNumericPrecisionStep(int)
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classorg.apache.lucene.document.FieldType
-
equals
public boolean equals(Object obj)
Deprecated.- Overrides:
equalsin classorg.apache.lucene.document.FieldType
-
toString
public String toString()
Deprecated.Prints a Field for human consumption.- Overrides:
toStringin classorg.apache.lucene.document.FieldType
-
-