Class AnyQueryNode
A AnyQueryNode represents an ANY operator performed on a list of nodes.
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class AnyQueryNode : AndQueryNode, IQueryNode
  Constructors
AnyQueryNode(IList<IQueryNode>, string, int)
A AnyQueryNode represents an ANY operator performed on a list of nodes.
Declaration
public AnyQueryNode(IList<IQueryNode> clauses, string field, int minimumMatchingElements)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IList<IQueryNode> | clauses | the query nodes to be or'ed  | 
      
| string | field | |
| int | minimumMatchingElements | 
Properties
Field
Gets or sets the field name. Returns null if the field was not specified.
Declaration
public virtual string Field { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
MinimumMatchingElements
A AnyQueryNode represents an ANY operator performed on a list of nodes.
Declaration
public virtual int MinimumMatchingElements { get; }
  Property Value
| Type | Description | 
|---|---|
| int | 
Methods
CloneTree()
Recursive clone the IQueryNode tree. The tags are not copied to the new tree when you call the CloneTree() method.
Declaration
public override IQueryNode CloneTree()
  Returns
| Type | Description | 
|---|---|
| IQueryNode | the cloned tree  | 
      
Overrides
GetFieldAsString()
null if the field was not specified
Declaration
public virtual string GetFieldAsString()
  Returns
| Type | Description | 
|---|---|
| string | the field as a string  | 
      
ToQueryString(IEscapeQuerySyntax)
convert to a query string understood by the query parser
Declaration
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEscapeQuerySyntax | escapeSyntaxParser | 
Returns
| Type | Description | 
|---|---|
| string | 
Overrides
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 | 
|---|---|
| string | 
Overrides
See Also
ToString()