Fork me on GitHub
  • API

    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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.