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

A BoostQueryNode boosts the QueryNode tree which is under this node. So, it must only and always have one child. The boost value may vary from 0.0 to 1.0.
Inheritance: QueryNodeImpl
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
BoostQueryNode ( IQueryNode query, float value ) : Lucene.Net.QueryParsers.Flexible.Core.Messages

Constructs a boost node

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

Private Methods

Method Description
GetValueString ( ) : string

Returns the boost value parsed to a string.

Method Details

BoostQueryNode() public method

Constructs a boost node
public BoostQueryNode ( IQueryNode query, float value ) : Lucene.Net.QueryParsers.Flexible.Core.Messages
query IQueryNode the query to be boosted
value float the boost value, it may vary from 0.0 to 1.0
return Lucene.Net.QueryParsers.Flexible.Core.Messages

CloneTree() public method

public CloneTree ( ) : IQueryNode
return IQueryNode

ToQueryString() public method

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

ToString() public method

public ToString ( ) : string
return string