Show / Hide Table of Contents

    Interface IBoostAttribute

    Add this IAttribute to a TermsEnum returned by GetTermsEnum(Terms, AttributeSource) and update the boost on each returned term. This enables to control the boost factor for each matching term in SCORING_BOOLEAN_QUERY_REWRITE or TopTermsRewrite<Q> mode. FuzzyQuery is using this to take the edit distance into account.

    Please note: this attribute is intended to be added only by the TermsEnum to itself in its constructor and consumed by the MultiTermQuery.RewriteMethod.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inherited Members
    IAttribute.CopyTo(IAttribute)
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public interface IBoostAttribute : IAttribute

    Properties

    | Improve this Doc View Source

    Boost

    Gets or Sets the boost in this attribute. Default is 1.0f.

    Declaration
    float Boost { get; set; }
    Property Value
    Type Description
    System.Single

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)