Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MultiFieldQueryNodeProcessor

    This processor is used to expand terms so the query looks for the same term in different fields. It also boosts a query based on its field.

    This processor looks for every IFieldableNode contained in the query node tree. If a IFieldableNode is found, it checks if there is a MULTI_FIELDS defined in the QueryConfigHandler. If there is, the IFieldableNode is cloned N times and the clones are added to a BooleanQueryNode together with the original node. N is defined by the number of fields that it will be expanded to. The BooleanQueryNode is returned.

    Inheritance
    System.Object
    QueryNodeProcessor
    MultiFieldQueryNodeProcessor
    Implements
    IQueryNodeProcessor
    Inherited Members
    QueryNodeProcessor.Process(IQueryNode)
    QueryNodeProcessor.SetQueryConfigHandler(QueryConfigHandler)
    QueryNodeProcessor.GetQueryConfigHandler()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Processors
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class MultiFieldQueryNodeProcessor : QueryNodeProcessor, IQueryNodeProcessor

    Constructors

    | Improve this Doc View Source

    MultiFieldQueryNodeProcessor()

    Declaration
    public MultiFieldQueryNodeProcessor()

    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

    ProcessChildren(IQueryNode)

    Declaration
    protected override void ProcessChildren(IQueryNode queryTree)
    Parameters
    Type Name Description
    IQueryNode queryTree
    Overrides
    QueryNodeProcessor.ProcessChildren(IQueryNode)
    | Improve this Doc View Source

    SetChildrenOrder(IList<IQueryNode>)

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

    Implements

    IQueryNodeProcessor

    See Also

    MULTI_FIELDS
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.