C# Class Lucene.Net.QueryParsers.Flexible.Standard.Processors.NumericQueryNodeProcessor

This processor is used to convert FieldQueryNodes to NumericRangeQueryNodes. It looks for ConfigurationKeys.NUMERIC_CONFIG set in the FieldConfig of every FieldQueryNode found. If 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 object representing a .NET numeric type. It means that field:1 is converted to field:[1 TO 1]. Note that FieldQueryNodes children of a RangeQueryNode are ignored.
Inheritance: QueryNodeProcessorImpl
Datei anzeigen Open project: apache/lucenenet

Public Methods

Method Description
NumericQueryNodeProcessor ( ) : Lucene.Net.Documents

Constructs a NumericQueryNodeProcessor object.

Protected Methods

Method Description
PostProcessNode ( IQueryNode node ) : IQueryNode
PreProcessNode ( IQueryNode node ) : IQueryNode
SetChildrenOrder ( IList children ) : IList

Method Details

NumericQueryNodeProcessor() public method

Constructs a NumericQueryNodeProcessor object.
public NumericQueryNodeProcessor ( ) : Lucene.Net.Documents
return Lucene.Net.Documents

PostProcessNode() protected method

protected PostProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
return IQueryNode

PreProcessNode() protected method

protected PreProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
return IQueryNode

SetChildrenOrder() protected method

protected SetChildrenOrder ( IList children ) : IList
children IList
return IList