Interface IQueryNode
Assembly: Lucene.Net.QueryParser.dll
Syntax
public interface IQueryNode
Properties
|
Improve this Doc
View Source
IsLeaf
verify if a node is a Leaf node
Declaration
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Parent
Declaration
IQueryNode Parent { get; }
Property Value
|
Improve this Doc
View Source
TagMap
Gets a map containing all tags attached to this query node.
Declaration
IDictionary<string, object> TagMap { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Methods
|
Improve this Doc
View Source
Add(IQueryNode)
add a new child to a non Leaf node
Declaration
void Add(IQueryNode child)
Parameters
|
Improve this Doc
View Source
Add(IList<IQueryNode>)
Declaration
void Add(IList<IQueryNode> children)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IList<IQueryNode> |
children |
|
|
Improve this Doc
View Source
CloneTree()
Recursive clone the IQueryNode tree. The tags are not copied to the new tree
when you call the CloneTree() method.
Declaration
Returns
|
Improve this Doc
View Source
ContainsTag(String)
verify if a node contains a tag
Declaration
bool ContainsTag(string tagName)
Parameters
| Type |
Name |
Description |
| System.String |
tagName |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
GetChildren()
Declaration
IList<IQueryNode> GetChildren()
Returns
| Type |
Description |
| System.Collections.Generic.IList<IQueryNode> |
|
|
Improve this Doc
View Source
GetTag(String)
Returns object stored under that tag name
Declaration
object GetTag(string tagName)
Parameters
| Type |
Name |
Description |
| System.String |
tagName |
|
Returns
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
RemoveFromParent()
Removes this query node from its parent.
Declaration
|
Improve this Doc
View Source
Set(IList<IQueryNode>)
reset the children of a node
Declaration
void Set(IList<IQueryNode> children)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IList<IQueryNode> |
children |
|
|
Improve this Doc
View Source
SetTag(String, Object)
Associate the specified value with the specified tagName. If the tagName
already exists, the old value is replaced. The tagName and value cannot be
null. tagName will be converted to lowercase.
Declaration
void SetTag(string tagName, object value)
Parameters
| Type |
Name |
Description |
| System.String |
tagName |
|
| System.Object |
value |
|
|
Improve this Doc
View Source
ToQueryString(IEscapeQuerySyntax)
convert to a query string understood by the query parser
Declaration
string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
ToString()
Declaration
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
UnsetTag(String)
Unset a tag. tagName will be converted to lowercase.
Declaration
void UnsetTag(string tagName)
Parameters
| Type |
Name |
Description |
| System.String |
tagName |
|