Class SlopQueryNode
A SlopQueryNode represents phrase query with a slop.
From Lucene FAQ: Is there a way to use a proximity operator (like near or within) with Lucene? There is a variable called slop that allows you to perform NEAR/WITHIN-like queries. By default, slop is set to 0 so that only exact phrases will match. When using TextParser you can use this syntax to specify the slop: "doug cutting"~2 will find documents that contain "doug cutting" as well as ones that contain "cutting doug".
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)
    
  Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class SlopQueryNode : QueryNode, IFieldableNode, IQueryNode
  Constructors
| Improve this Doc View SourceSlopQueryNode(IQueryNode, Int32)
Declaration
public SlopQueryNode(IQueryNode query, int value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IQueryNode | query | QueryNode Tree with the phrase  | 
      
| System.Int32 | value | slop value  | 
      
Properties
| Improve this Doc View SourceField
Declaration
public virtual string Field { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Value
Declaration
public virtual int Value { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
| Improve this Doc View SourceCloneTree()
Declaration
public override IQueryNode CloneTree()
  Returns
| Type | Description | 
|---|---|
| IQueryNode | 
Overrides
| Improve this Doc View SourceGetChild()
Declaration
public virtual IQueryNode GetChild()
  Returns
| Type | Description | 
|---|---|
| IQueryNode | 
ToQueryString(IEscapeQuerySyntax)
Declaration
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEscapeQuerySyntax | escapeSyntaxParser | 
Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String |