C# Class Lucene.Net.QueryParsers.Flexible.Core.Nodes.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: QueryNodeImpl, IFieldableNode
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
CloneTree ( ) : IQueryNode
GetChild ( ) : IQueryNode
SlopQueryNode ( IQueryNode query, int value ) : Lucene.Net.QueryParsers.Flexible.Core.Messages

ToQueryString ( IEscapeQuerySyntax escapeSyntaxParser ) : string
ToString ( ) : string

Private Methods

Method Description
GetValueString ( ) : string

Method Details

CloneTree() public method

public CloneTree ( ) : IQueryNode
return IQueryNode

GetChild() public method

public GetChild ( ) : IQueryNode
return IQueryNode

SlopQueryNode() public method

public SlopQueryNode ( IQueryNode query, int value ) : Lucene.Net.QueryParsers.Flexible.Core.Messages
query IQueryNode QueryNode Tree with the phrase
value int slop value
return Lucene.Net.QueryParsers.Flexible.Core.Messages

ToQueryString() public method

public ToQueryString ( IEscapeQuerySyntax escapeSyntaxParser ) : string
escapeSyntaxParser IEscapeQuerySyntax
return string

ToString() public method

public ToString ( ) : string
return string