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);
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.QueryParser.dll
Syntax
[Serializable]
public class PathQueryNode : QueryNode, IQueryNode
Constructors
Name | Description |
---|---|
PathQueryNode(IList<PathQueryNode.QueryText>) |
Properties
Name | Description |
---|---|
PathElements | Gets or Sets the a List with all QueryText elements |
Methods
Name | Description |
---|---|
CloneTree() | |
GetFirstPathElement() | Returns the System.String value of a specific QueryText element |
GetPathElement(Int32) | Returns the a specific QueryText element |
GetPathElements(Int32) | Returns a List QueryText element from position |
ToQueryString(IEscapeQuerySyntax) | |
ToString() |