Show / Hide Table of Contents

    Class NumericQueryNodeProcessor

    This processor is used to convert FieldQueryNodes to NumericRangeQueryNodes. It looks for NUMERIC_CONFIG set in the FieldConfig of every FieldQueryNode found. If 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 representing a .NET numeric type. It means that field:1 is converted to field:[1 TO 1].

    Note that FieldQueryNodes children of a IRangeQueryNode are ignored.

    Inheritance
    System.Object
    QueryNodeProcessor
    NumericQueryNodeProcessor
    Implements
    IQueryNodeProcessor
    Inherited Members
    QueryNodeProcessor.Process(IQueryNode)
    QueryNodeProcessor.ProcessChildren(IQueryNode)
    QueryNodeProcessor.SetQueryConfigHandler(QueryConfigHandler)
    QueryNodeProcessor.GetQueryConfigHandler()
    Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Processors
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class NumericQueryNodeProcessor : QueryNodeProcessor, IQueryNodeProcessor

    Constructors

    | Improve this Doc View Source

    NumericQueryNodeProcessor()

    Constructs a NumericQueryNodeProcessor object.

    Declaration
    public NumericQueryNodeProcessor()

    Methods

    | Improve this Doc View Source

    PostProcessNode(IQueryNode)

    Declaration
    protected override IQueryNode PostProcessNode(IQueryNode node)
    Parameters
    Type Name Description
    IQueryNode node
    Returns
    Type Description
    IQueryNode
    Overrides
    QueryNodeProcessor.PostProcessNode(IQueryNode)
    | Improve this Doc View Source

    PreProcessNode(IQueryNode)

    Declaration
    protected override IQueryNode PreProcessNode(IQueryNode node)
    Parameters
    Type Name Description
    IQueryNode node
    Returns
    Type Description
    IQueryNode
    Overrides
    QueryNodeProcessor.PreProcessNode(IQueryNode)
    | Improve this Doc View Source

    SetChildrenOrder(IList<IQueryNode>)

    Declaration
    protected override IList<IQueryNode> SetChildrenOrder(IList<IQueryNode> children)
    Parameters
    Type Name Description
    IList<IQueryNode> children
    Returns
    Type Description
    IList<IQueryNode>
    Overrides
    QueryNodeProcessor.SetChildrenOrder(IList<IQueryNode>)

    Implements

    IQueryNodeProcessor

    See Also

    NUMERIC_CONFIG
    FieldQueryNode
    NumericConfig
    NumericQueryNode
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)