Show / Hide Table of Contents

    Class QueryNode

    A QueryNode is the default implementation of the interface IQueryNode

    Inheritance
    System.Object
    QueryNode
    BooleanQueryNode
    BoostQueryNode
    DeletedQueryNode
    FieldQueryNode
    GroupQueryNode
    MatchAllDocsQueryNode
    ModifierQueryNode
    OpaqueQueryNode
    PathQueryNode
    PhraseSlopQueryNode
    SlopQueryNode
    TokenizedPhraseQueryNode
    AbstractRangeQueryNode<T>
    MultiPhraseQueryNode
    NumericQueryNode
    RegexpQueryNode
    Implements
    IQueryNode
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public abstract class QueryNode : object, IQueryNode

    Fields

    | Improve this Doc View Source

    m_toQueryStringIgnoreFields

    If set to true the the method toQueryString will not write field names

    Declaration
    protected bool m_toQueryStringIgnoreFields
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    PLAINTEXT_FIELD_NAME

    index default field

    Declaration
    public static readonly string PLAINTEXT_FIELD_NAME
    Field Value
    Type Description
    System.String

    Properties

    | Improve this Doc View Source

    IsLeaf

    Declaration
    public virtual bool IsLeaf { get; protected set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsRoot

    Declaration
    protected virtual bool IsRoot { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Parent

    Declaration
    public virtual IQueryNode Parent { get; }
    Property Value
    Type Description
    IQueryNode
    | Improve this Doc View Source

    TagMap

    Gets a map containing all tags attached to this query node.

    Declaration
    public virtual IDictionary<string, object> TagMap { get; }
    Property Value
    Type Description
    IDictionary<System.String, System.Object>

    Methods

    | Improve this Doc View Source

    Add(IList<IQueryNode>)

    Declaration
    public void Add(IList<IQueryNode> children)
    Parameters
    Type Name Description
    IList<IQueryNode> children
    | Improve this Doc View Source

    Add(IQueryNode)

    Declaration
    public void Add(IQueryNode child)
    Parameters
    Type Name Description
    IQueryNode child
    | Improve this Doc View Source

    Allocate()

    Declaration
    protected virtual void Allocate()
    | Improve this Doc View Source

    Clone()

    Declaration
    public virtual object Clone()
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    CloneTree()

    Declaration
    public virtual IQueryNode CloneTree()
    Returns
    Type Description
    IQueryNode
    | Improve this Doc View Source

    ContainsTag(String)

    verify if a node contains a tag

    Declaration
    public virtual bool ContainsTag(string tagName)
    Parameters
    Type Name Description
    System.String tagName
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetChildren()

    a List for QueryNode object. Returns null, for nodes that do not contain children. All leaf Nodes return null.

    Declaration
    public IList<IQueryNode> GetChildren()
    Returns
    Type Description
    IList<IQueryNode>
    | Improve this Doc View Source

    GetTag(String)

    Declaration
    public virtual object GetTag(string tagName)
    Parameters
    Type Name Description
    System.String tagName
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    IsDefaultField(String)

    This method is use toQueryString to detect if fld is the default field

    Declaration
    protected virtual bool IsDefaultField(string fld)
    Parameters
    Type Name Description
    System.String fld

    field name

    Returns
    Type Description
    System.Boolean

    true if fld is the default field

    | Improve this Doc View Source

    RemoveFromParent()

    Declaration
    public virtual void RemoveFromParent()
    | Improve this Doc View Source

    Set(IList<IQueryNode>)

    Declaration
    public void Set(IList<IQueryNode> children)
    Parameters
    Type Name Description
    IList<IQueryNode> children
    | Improve this Doc View Source

    SetTag(String, Object)

    Declaration
    public virtual void SetTag(string tagName, object value)
    Parameters
    Type Name Description
    System.String tagName
    System.Object value
    | Improve this Doc View Source

    ToQueryString(IEscapeQuerySyntax)

    Declaration
    public abstract string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
    Parameters
    Type Name Description
    IEscapeQuerySyntax escapeSyntaxParser
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    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
    System.String
    See Also
    ToString()
    | Improve this Doc View Source

    UnsetTag(String)

    Declaration
    public virtual void UnsetTag(string tagName)
    Parameters
    Type Name Description
    System.String tagName

    Implements

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