Class PhraseSlopQueryNode
Query node for Lucene.Net.Search.PhraseQuery's slop factor.
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class PhraseSlopQueryNode : QueryNode, IFieldableNode, IQueryNode
  Constructors
PhraseSlopQueryNode(IQueryNode, int)
Query node for Lucene.Net.Search.PhraseQuery's slop factor.
Declaration
public PhraseSlopQueryNode(IQueryNode query, int value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IQueryNode | query | |
| int | value | 
Exceptions
| Type | Condition | 
|---|---|
| QueryNodeError | throw in overridden method to disallow  | 
      
Properties
Field
Gets or Sets the field name associated to the node and every node under it.
Declaration
public virtual string Field { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Value
Query node for Lucene.Net.Search.PhraseQuery's slop factor.
Declaration
public virtual int Value { 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
GetChild()
Query node for Lucene.Net.Search.PhraseQuery's slop factor.
Declaration
public virtual IQueryNode GetChild()
  Returns
| Type | Description | 
|---|---|
| IQueryNode | 
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()