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 convert 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 Details