Class NumericQueryNodeProcessor
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
-
- org.apache.lucene.queryparser.flexible.standard.processors.NumericQueryNodeProcessor
-
- All Implemented Interfaces:
QueryNodeProcessor
public class NumericQueryNodeProcessor extends QueryNodeProcessorImpl
This processor is used to convertFieldQueryNodes toNumericRangeQueryNodes. It looks forStandardQueryConfigHandler.ConfigurationKeys.NUMERIC_CONFIGset in theFieldConfigof everyFieldQueryNodefound. IfStandardQueryConfigHandler.ConfigurationKeys.NUMERIC_CONFIGis found, it considers thatFieldQueryNodeto be a numeric query and convert it toNumericRangeQueryNodewith upper and lower inclusive and lower and upper equals to the value represented by theFieldQueryNodeconverted toNumber. It means that field:1 is converted to field:[1 TO 1].
Note thatFieldQueryNodes children of aRangeQueryNodeare ignored.
-
-
Constructor Summary
Constructors Constructor Description NumericQueryNodeProcessor()Constructs aNumericQueryNodeProcessorobject.
-
Method Summary
-
Methods inherited from class org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
getQueryConfigHandler, process, setQueryConfigHandler
-
-
-
-
Constructor Detail
-
NumericQueryNodeProcessor
public NumericQueryNodeProcessor()
Constructs aNumericQueryNodeProcessorobject.
-
-