Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class GroupQueryNode

    A GroupQueryNode represents a location where the original user typed real parenthesis on the query string. This class is useful for queries like: a) a AND b OR c b) ( a AND b) OR c

    Parenthesis might be used to define the boolean operation precedence.

    Inheritance
    object
    QueryNode
    GroupQueryNode
    Implements
    IQueryNode
    Inherited Members
    QueryNode.PLAINTEXT_FIELD_NAME
    QueryNode.Allocate()
    QueryNode.Add(IQueryNode)
    QueryNode.Add(IList<IQueryNode>)
    QueryNode.IsLeaf
    QueryNode.Set(IList<IQueryNode>)
    QueryNode.Clone()
    QueryNode.GetChildren()
    QueryNode.SetTag(string, object)
    QueryNode.UnsetTag(string)
    QueryNode.ContainsTag(string)
    QueryNode.GetTag(string)
    QueryNode.TryGetTag(string, out object)
    QueryNode.Parent
    QueryNode.IsRoot
    QueryNode.m_toQueryStringIgnoreFields
    QueryNode.IsDefaultField(string)
    QueryNode.TagMap
    QueryNode.RemoveChildren(IQueryNode)
    QueryNode.RemoveFromParent()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class GroupQueryNode : QueryNode, IQueryNode

    Constructors

    GroupQueryNode(IQueryNode)

    This IQueryNode is used to identify parenthesis on the original query string

    Declaration
    public GroupQueryNode(IQueryNode query)
    Parameters
    Type Name Description
    IQueryNode query

    Methods

    CloneTree()

    Recursive clone the IQueryNode tree. The tags are not copied to the new tree when you call the CloneTree() method.

    Declaration
    public override IQueryNode CloneTree()
    Returns
    Type Description
    IQueryNode

    the cloned tree

    Overrides
    QueryNode.CloneTree()

    GetChild()

    A GroupQueryNode represents a location where the original user typed real parenthesis on the query string. This class is useful for queries like: a) a AND b OR c b) ( a AND b) OR c

    Parenthesis might be used to define the boolean operation precedence.

    Declaration
    public virtual IQueryNode GetChild()
    Returns
    Type Description
    IQueryNode

    SetChild(IQueryNode)

    A GroupQueryNode represents a location where the original user typed real parenthesis on the query string. This class is useful for queries like: a) a AND b OR c b) ( a AND b) OR c

    Parenthesis might be used to define the boolean operation precedence.

    Declaration
    public virtual void SetChild(IQueryNode child)
    Parameters
    Type Name Description
    IQueryNode child

    ToQueryString(IEscapeQuerySyntax)

    convert to a query string understood by the query parser

    Declaration
    public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
    Parameters
    Type Name Description
    IEscapeQuerySyntax escapeSyntaxParser
    Returns
    Type Description
    string
    Overrides
    QueryNode.ToQueryString(IEscapeQuerySyntax)

    ToString()

    Every implementation of this class should return pseudo xml like this:

    For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    QueryNode.ToString()
    See Also
    ToString()

    Implements

    IQueryNode
    Back to top Copyright © 2024 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.