Class NumericConfig


  • public class NumericConfig
    extends Object
    This class holds the configuration used to parse numeric queries and create NumericRangeQuerys.
    See Also:
    NumericRangeQuery, NumberFormat
    • Method Detail

      • getPrecisionStep

        public int getPrecisionStep()
        Returns the precision used to index the numeric values
        Returns:
        the precision used to index the numeric values
        See Also:
        NumericRangeQuery.getPrecisionStep()
      • setPrecisionStep

        public void setPrecisionStep​(int precisionStep)
        Sets the precision used to index the numeric values
        Parameters:
        precisionStep - the precision used to index the numeric values
        See Also:
        NumericRangeQuery.getPrecisionStep()
      • getType

        public org.apache.lucene.document.NumericField.DataType getType()
        Returns the numeric type used to index the numeric values
        Returns:
        the numeric type used to index the numeric values
      • setType

        public void setType​(org.apache.lucene.document.NumericField.DataType type)
        Sets the numeric type used to index the numeric values
        Parameters:
        type - the numeric type used to index the numeric values