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.Parent
    QueryNode.IsRoot
    QueryNode.m_toQueryStringIgnoreFields
    QueryNode.IsDefaultField(String)
    QueryNode.TagMap
    QueryNode.RemoveFromParent()
    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
    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
    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 value of a specific QueryText element

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

    The 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
    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 © 2020 Licensed to the Apache Software Foundation (ASF)