Class 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.
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class BoostQueryNode : QueryNode, IQueryNode
Constructors
BoostQueryNode(IQueryNode, float)
Constructs a boost node
Declaration
public BoostQueryNode(IQueryNode query, float value)
Parameters
Type | Name | Description |
---|---|---|
IQueryNode | query | the query to be boosted |
float | value | the boost value, it may vary from 0.0 to 1.0 |
Properties
Child
Gets the single child which this node boosts.
Declaration
public virtual IQueryNode Child { get; }
Property Value
Type | Description |
---|---|
IQueryNode |
Value
Gets the boost value. It may vary from 0.0 to 1.0.
Declaration
public virtual float Value { get; }
Property Value
Type | Description |
---|---|
float |
Methods
CloneTree()
Recursive clone the IQueryNode tree. The tags are not copied to the new tree when you call the CloneTree() method.
Declaration
public override IQueryNode CloneTree()
Returns
Type | Description |
---|---|
IQueryNode | the cloned tree |
Overrides
ToQueryString(IEscapeQuerySyntax)
convert to a query string understood by the query parser
Declaration
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
Parameters
Type | Name | Description |
---|---|---|
IEscapeQuerySyntax | escapeSyntaxParser |
Returns
Type | Description |
---|---|
string |
Overrides
ToString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
See Also
ToString()