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

A ModifierQueryNode indicates the modifier value (+,-,?,NONE) for each term on the query string. For example "+t1 -t2 t3" will have a tree of:
<BooleanQueryNode> <ModifierQueryNode modifier="MOD_REQ"> <t1/> </ModifierQueryNode> <ModifierQueryNode modifier="MOD_NOT"> <t2/> </ModifierQueryNode> <t3/> </BooleanQueryNode>
Inheritance: QueryNodeImpl
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
CloneTree ( ) : IQueryNode
GetChild ( ) : IQueryNode
ModifierQueryNode ( IQueryNode query, Modifier mod ) : Lucene.Net.QueryParsers.Flexible.Core.Messages

Used to store the modifier value on the original query string

SetChild ( IQueryNode child ) : void
ToQueryString ( IEscapeQuerySyntax escapeSyntaxParser ) : string
ToString ( ) : string

Method Details

CloneTree() public method

public CloneTree ( ) : IQueryNode
return IQueryNode

GetChild() public method

public GetChild ( ) : IQueryNode
return IQueryNode

ModifierQueryNode() public method

Used to store the modifier value on the original query string
public ModifierQueryNode ( IQueryNode query, Modifier mod ) : Lucene.Net.QueryParsers.Flexible.Core.Messages
query IQueryNode QueryNode subtree
mod Modifier Modifier Value
return Lucene.Net.QueryParsers.Flexible.Core.Messages

SetChild() public method

public SetChild ( IQueryNode child ) : void
child IQueryNode
return void

ToQueryString() public method

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

ToString() public method

public ToString ( ) : string
return string