Class NumericConfig
java.lang.Object
org.apache.lucene.queryparser.flexible.standard.config.NumericConfig
This class holds the configuration used to parse numeric queries and create
NumericRangeQuerys.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNumericConfig(int precisionStep, NumberFormat format, FieldType.NumericType type) Constructs aNumericConfigobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the precision used to index the numeric valuesgetType()Returns the numeric type used to index the numeric valuesvoidsetNumberFormat(NumberFormat format) voidsetPrecisionStep(int precisionStep) Sets the precision used to index the numeric valuesvoidsetType(FieldType.NumericType type) Sets the numeric type used to index the numeric values
-
Constructor Details
-
NumericConfig
Constructs aNumericConfigobject.- Parameters:
precisionStep- the precision used to index the numeric valuesformat- theNumberFormatused to parse aStringtoNumbertype- the numeric type used to index the numeric values- See Also:
-
-
Method Details
-
getPrecisionStep
public int getPrecisionStep()Returns the precision used to index the numeric values- Returns:
- the precision used to index the numeric values
- See Also:
-
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:
-
getNumberFormat
- Returns:
- the
NumberFormatused to parse aStringtoNumber
-
getType
Returns the numeric type used to index the numeric values- Returns:
- the numeric type used to index the numeric values
-
setType
Sets the numeric type used to index the numeric values- Parameters:
type- the numeric type used to index the numeric values
-
setNumberFormat
- Parameters:
format- theNumberFormatused to parse aStringtoNumber, cannot benull
-
equals
-