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
Afficher le fichier Open project: apache/lucenenet

Méthodes publiques

Méthode Description
NumericQueryNodeProcessor ( ) : Lucene.Net.Documents

Constructs a NumericQueryNodeProcessor object.

Méthodes protégées

Méthode Description
PostProcessNode ( IQueryNode node ) : IQueryNode
PreProcessNode ( IQueryNode node ) : IQueryNode
SetChildrenOrder ( IList children ) : IList

Method Details

NumericQueryNodeProcessor() public méthode

Constructs a NumericQueryNodeProcessor object.
public NumericQueryNodeProcessor ( ) : Lucene.Net.Documents
Résultat Lucene.Net.Documents

PostProcessNode() protected méthode

protected PostProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
Résultat IQueryNode

PreProcessNode() protected méthode

protected PreProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
Résultat IQueryNode

SetChildrenOrder() protected méthode

protected SetChildrenOrder ( IList children ) : IList
children IList
Résultat IList