Show / Hide Table of Contents

    Interface IQueryNodeProcessor

    An IQueryNodeProcessor is an interface for classes that process a IQueryNode tree.

    The implementor of this class should perform some operation on a query node tree and return the same or another query node tree.

    It also may carry a QueryConfigHandler object that contains configuration about the query represented by the query tree or the collection/index where it's intended to be executed.

    In case there is any QueryConfigHandler associated to the query tree to be processed, it should be set using SetQueryConfigHandler(QueryConfigHandler) before Process(IQueryNode) is invoked.

    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Processors
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public interface IQueryNodeProcessor

    Methods

    | Improve this Doc View Source

    GetQueryConfigHandler()

    Returns the QueryConfigHandler associated to the query tree if any, otherwise it returns null

    Declaration
    QueryConfigHandler GetQueryConfigHandler()
    Returns
    Type Description
    QueryConfigHandler

    the QueryConfigHandler associated to the query tree if any, otherwise it returns null

    | Improve this Doc View Source

    Process(IQueryNode)

    Processes a query node tree. It may return the same or another query tree. I should never return null.

    Declaration
    IQueryNode Process(IQueryNode queryTree)
    Parameters
    Type Name Description
    IQueryNode queryTree

    tree root node

    Returns
    Type Description
    IQueryNode

    the processed query tree

    | Improve this Doc View Source

    SetQueryConfigHandler(QueryConfigHandler)

    Sets the QueryConfigHandler associated to the query tree.

    Declaration
    void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
    Parameters
    Type Name Description
    QueryConfigHandler queryConfigHandler

    See Also

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