Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PathQueryNode

    A PathQueryNode is used to store queries like /company/USA/California /product/shoes/brown. QueryText are objects that contain the text, begin position and end position in the query.

    Example how the text parser creates these objects:

    IList<PathQueryNode.QueryText> values = new List<PathQueryNode.QueryText>();
    values.Add(new PathQueryNode.QueryText("company", 1, 7));
    values.Add(new PathQueryNode.QueryText("USA", 9, 12));
    values.Add(new PathQueryNode.QueryText("California", 14, 23));
    QueryNode q = new PathQueryNode(values);
    Inheritance
    System.Object
    QueryNode
    PathQueryNode
    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, Object)
    QueryNode.Parent
    QueryNode.IsRoot
    QueryNode.m_toQueryStringIgnoreFields
    QueryNode.IsDefaultField(String)
    QueryNode.TagMap
    QueryNode.RemoveChildren(IQueryNode)
    QueryNode.RemoveFromParent()
    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)
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class PathQueryNode : QueryNode, IQueryNode

    Constructors

    | Improve this Doc View Source

    PathQueryNode(IList<PathQueryNode.QueryText>)

    Declaration
    public PathQueryNode(IList<PathQueryNode.QueryText> pathElements)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<PathQueryNode.QueryText> pathElements

    List of QueryText objects

    Properties

    | Improve this Doc View Source

    PathElements

    Gets or Sets the a List with all QueryText elements

    Declaration
    public virtual IList<PathQueryNode.QueryText> PathElements { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IList<PathQueryNode.QueryText>

    QueryText List size

    Methods

    | Improve this Doc View Source

    CloneTree()

    Declaration
    public override IQueryNode CloneTree()
    Returns
    Type Description
    IQueryNode
    Overrides
    QueryNode.CloneTree()
    | Improve this Doc View Source

    GetFirstPathElement()

    Returns the System.String value of a specific QueryText element

    Declaration
    public virtual string GetFirstPathElement()
    Returns
    Type Description
    System.String

    The System.String for a specific QueryText element

    | Improve this Doc View Source

    GetPathElement(Int32)

    Returns the a specific QueryText element

    Declaration
    public virtual PathQueryNode.QueryText GetPathElement(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    PathQueryNode.QueryText

    QueryText List size

    | Improve this Doc View Source

    GetPathElements(Int32)

    Returns a List QueryText element from position startIndex

    Declaration
    public virtual IList<PathQueryNode.QueryText> GetPathElements(int startIndex)
    Parameters
    Type Name Description
    System.Int32 startIndex
    Returns
    Type Description
    System.Collections.Generic.IList<PathQueryNode.QueryText>

    a List QueryText element from position startIndex

    | Improve this Doc View Source

    ToQueryString(IEscapeQuerySyntax)

    Declaration
    public override string ToQueryString(IEscapeQuerySyntax escaper)
    Parameters
    Type Name Description
    IEscapeQuerySyntax escaper
    Returns
    Type Description
    System.String
    Overrides
    QueryNode.ToQueryString(IEscapeQuerySyntax)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    QueryNode.ToString()

    Implements

    IQueryNode
    • 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.