C# Класс 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.
Наследование: QueryNodeProcessorImpl
Показать файл Открыть проект

Открытые методы

Метод Описание
NumericQueryNodeProcessor ( ) : Lucene.Net.Documents

Constructs a NumericQueryNodeProcessor object.

Защищенные методы

Метод Описание
PostProcessNode ( IQueryNode node ) : IQueryNode
PreProcessNode ( IQueryNode node ) : IQueryNode
SetChildrenOrder ( IList children ) : IList

Описание методов

NumericQueryNodeProcessor() публичный Метод

Constructs a NumericQueryNodeProcessor object.
public NumericQueryNodeProcessor ( ) : Lucene.Net.Documents
Результат Lucene.Net.Documents

PostProcessNode() защищенный Метод

protected PostProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
Результат IQueryNode

PreProcessNode() защищенный Метод

protected PreProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
Результат IQueryNode

SetChildrenOrder() защищенный Метод

protected SetChildrenOrder ( IList children ) : IList
children IList
Результат IList