Show / Hide Table of Contents

    Class BooleanModifiersQueryNodeProcessor

    This processor is used to apply the correct ModifierQueryNode to BooleanQueryNodes children.

    It walks through the query node tree looking for BooleanQueryNodes. If an AndQueryNode is found, every child, which is not a ModifierQueryNode or the ModifierQueryNode is MOD_NONE, becomes a MOD_REQ. For any other BooleanQueryNode which is not an OrQueryNode, it checks the default operator is AND, if it is, the same operation when an AndQueryNode is found is applied to it.

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

    Constructors

    | Improve this Doc View Source

    BooleanModifiersQueryNodeProcessor()

    Declaration
    public BooleanModifiersQueryNodeProcessor()

    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

    Process(IQueryNode)

    Declaration
    public override IQueryNode Process(IQueryNode queryTree)
    Parameters
    Type Name Description
    IQueryNode queryTree
    Returns
    Type Description
    IQueryNode
    Overrides
    QueryNodeProcessor.Process(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

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