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
This processor is used to convert
Note that
FieldQueryNodes to
NumericRangeQueryNodes. It looks for
StandardQueryConfigHandler.ConfigurationKeys.NUMERIC_CONFIG set in the FieldConfig of
every FieldQueryNode found. If
StandardQueryConfigHandler.ConfigurationKeys.NUMERIC_CONFIG is found, it considers that
FieldQueryNode to be a numeric query and convert it to
NumericRangeQueryNode with upper and lower inclusive and lower and
upper equals to the value represented by the FieldQueryNode converted
to Number. It means that field:1 is converted to field:[1
TO 1]. Note that
FieldQueryNodes children of a
RangeQueryNode are ignored.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
getQueryConfigHandler, process, setQueryConfigHandler
-
Constructor Details
-
NumericQueryNodeProcessor
public NumericQueryNodeProcessor()Constructs aNumericQueryNodeProcessorobject.
-