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 to PointValues instead
FieldType extension with support for legacy numerics
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Create a new FieldType with default properties.
    Deprecated.
    Create a new mutable LegacyFieldType with all of the properties from ref
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    int
    Deprecated.
     
    int
    Deprecated.
    Please switch to PointValues instead
    Deprecated.
    Please switch to PointValues instead
    void
    setNumericPrecisionStep(int precisionStep)
    Deprecated.
    Please switch to PointValues instead
    void
    Deprecated.
    Please switch to PointValues instead
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LegacyFieldType

      public LegacyFieldType(LegacyFieldType ref)
      Deprecated.
      Create a new mutable LegacyFieldType with all of the properties from ref
    • LegacyFieldType

      public LegacyFieldType()
      Deprecated.
      Create a new FieldType with default properties.
  • Method Details

    • setNumericType

      @Deprecated public void setNumericType(LegacyNumericType type)
      Deprecated.
      Please switch to PointValues instead
      Specifies 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 public LegacyNumericType numericType()
      Deprecated.
      Please switch to PointValues instead
      LegacyNumericType: if non-null then the field's value will be indexed numerically so that LegacyNumericRangeQuery can be used at search time.

      The default is null (no numeric type)

      See Also:
    • setNumericPrecisionStep

      @Deprecated public void setNumericPrecisionStep(int precisionStep)
      Deprecated.
      Please switch to PointValues instead
      Sets 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 public int numericPrecisionStep()
      Deprecated.
      Please switch to PointValues instead
      Precision 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:
      hashCode in class org.apache.lucene.document.FieldType
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class org.apache.lucene.document.FieldType
    • toString

      public String toString()
      Deprecated.
      Prints a Field for human consumption.
      Overrides:
      toString in class org.apache.lucene.document.FieldType