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
| Improve this Doc View SourceBoostQueryNode(IQueryNode, Single)
Constructs a boost node
Declaration
public BoostQueryNode(IQueryNode query, float value)
Parameters
Type | Name | Description |
---|---|---|
IQueryNode | query | the query to be boosted |
System.Single | value | the boost value, it may vary from 0.0 to 1.0 |
Properties
| Improve this Doc View SourceChild
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 |
---|---|
System.Single |
Methods
| Improve this Doc View SourceCloneTree()
Declaration
public override IQueryNode CloneTree()
Returns
Type | Description |
---|---|
IQueryNode |
Overrides
| Improve this Doc View SourceToQueryString(IEscapeQuerySyntax)
Declaration
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
Parameters
Type | Name | Description |
---|---|---|
IEscapeQuerySyntax | escapeSyntaxParser |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |