Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    QueryNode
    BoostQueryNode
    Implements
    IQueryNode
    Inherited Members
    QueryNode.PLAINTEXT_FIELD_NAME
    QueryNode.Allocate()
    QueryNode.Add(IQueryNode)
    QueryNode.Add(IList<IQueryNode>)
    QueryNode.IsLeaf
    QueryNode.Set(IList<IQueryNode>)
    QueryNode.Clone()
    QueryNode.GetChildren()
    QueryNode.SetTag(String, Object)
    QueryNode.UnsetTag(String)
    QueryNode.ContainsTag(String)
    QueryNode.GetTag(String)
    QueryNode.Parent
    QueryNode.IsRoot
    QueryNode.m_toQueryStringIgnoreFields
    QueryNode.IsDefaultField(String)
    QueryNode.TagMap
    QueryNode.RemoveFromParent()
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class BoostQueryNode : QueryNode, IQueryNode

    Constructors

    | Improve this Doc View Source

    BoostQueryNode(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 Source

    Child

    Gets the single child which this node boosts.

    Declaration
    public virtual IQueryNode Child { get; }
    Property Value
    Type Description
    IQueryNode
    | Improve this Doc View Source

    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 Source

    CloneTree()

    Declaration
    public override IQueryNode CloneTree()
    Returns
    Type Description
    IQueryNode
    Overrides
    QueryNode.CloneTree()
    | Improve this Doc View Source

    ToQueryString(IEscapeQuerySyntax)

    Declaration
    public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
    Parameters
    Type Name Description
    IEscapeQuerySyntax escapeSyntaxParser
    Returns
    Type Description
    System.String
    Overrides
    QueryNode.ToQueryString(IEscapeQuerySyntax)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    QueryNode.ToString()

    Implements

    IQueryNode
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)