C# Class Lucene.Net.QueryParsers.Flexible.Core.Nodes.ProximityQueryNode

A ProximityQueryNode represents a query where the terms should meet specific distance conditions. (a b c) WITHIN [SENTENCE|PARAGRAPH|NUMBER] [INORDER] ("a" "b" "c") WITHIN [SENTENCE|PARAGRAPH|NUMBER] [INORDER] TODO: Add this to the future standard Lucene parser/processor/builder
Inheritance: BooleanQueryNode
Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
CloneTree ( ) : IQueryNode
GetFieldAsString ( ) : string

Gets the field as a string. Returns null if the field was not specified in the query string.

ProximityQueryNode ( IList clauses, string field, ProximityQueryNode type, bool inorder ) : Lucene.Net.QueryParsers.Flexible.Core.Messages

ProximityQueryNode ( IList clauses, string field, ProximityQueryNode type, int distance, bool inorder ) : Lucene.Net.QueryParsers.Flexible.Core.Messages

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

Private Methods

Method Description
ClearFields ( IList nodes, string field ) : void

Method Details

CloneTree() public method

public CloneTree ( ) : IQueryNode
return IQueryNode

GetFieldAsString() public method

Gets the field as a string. Returns null if the field was not specified in the query string.
public GetFieldAsString ( ) : string
return string

ProximityQueryNode() public method

public ProximityQueryNode ( IList clauses, string field, ProximityQueryNode type, bool inorder ) : Lucene.Net.QueryParsers.Flexible.Core.Messages
clauses IList QueryNode children
field string field name
type ProximityQueryNode type of proximity query
inorder bool true, if the tokens should be matched in the order of the clauses
return Lucene.Net.QueryParsers.Flexible.Core.Messages

ProximityQueryNode() public method

public ProximityQueryNode ( IList clauses, string field, ProximityQueryNode type, int distance, bool inorder ) : Lucene.Net.QueryParsers.Flexible.Core.Messages
clauses IList QueryNode children
field string field name
type ProximityQueryNode type of proximity query
distance int positive integer that specifies the distance
inorder bool true, if the tokens should be matched in the order of the clauses
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