Class QueryNode
Inheritance
System.Object
QueryNode
Inherited Members
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)
Assembly: Lucene.Net.QueryParser.dll
Syntax
public abstract class QueryNode : 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
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
|
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 |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Methods
|
Improve this Doc
View Source
Add(IQueryNode)
Declaration
public void Add(IQueryNode child)
Parameters
|
Improve this Doc
View Source
Add(IList<IQueryNode>)
Declaration
public void Add(IList<IQueryNode> children)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<IQueryNode> |
children |
|
|
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
|
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 |
System.Collections.Generic.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
RemoveChildren(IQueryNode)
Declaration
public virtual void RemoveChildren(IQueryNode childNode)
Parameters
|
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 |
System.Collections.Generic.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
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 |
|
Overrides
System.Object.ToString()
See Also
|
Improve this Doc
View Source
TryGetTag(String, out Object)
Gets the tag associated with the specified tagName.
Declaration
public virtual bool TryGetTag(string tagName, out object tag)
Parameters
Type |
Name |
Description |
System.String |
tagName |
|
System.Object |
tag |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
UnsetTag(String)
Declaration
public virtual void UnsetTag(string tagName)
Parameters
Type |
Name |
Description |
System.String |
tagName |
|
Implements