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".
Inheritance
System.Object
SlopQueryNode
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class SlopQueryNode : QueryNode, IFieldableNode, IQueryNode
Constructors
|
Improve this Doc
View Source
SlopQueryNode(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 Source
Field
Declaration
public virtual string Field { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Value
Declaration
public virtual int Value { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
CloneTree()
Declaration
public override IQueryNode CloneTree()
Returns
Overrides
|
Improve this Doc
View Source
GetChild()
Declaration
public virtual IQueryNode GetChild()
Returns
|
Improve this Doc
View Source
ToQueryString(IEscapeQuerySyntax)
Declaration
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
Parameters
Returns
Type |
Description |
System.String |
|
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Implements