Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Interface IMaxNonCompetitiveBoostAttribute

    Add this IAttribute to a fresh AttributeSource before calling GetTermsEnum(Terms, AttributeSource). FuzzyQuery is using this to control its internal behaviour to only return competitive terms.

    Please note: this attribute is intended to be added by the MultiTermQuery.RewriteMethod to an empty AttributeSource that is shared for all segments during query rewrite. This attribute source is passed to all segment enums on GetTermsEnum(Terms, AttributeSource). TopTermsRewrite<Q> uses this attribute to inform all enums about the current boost, that is not competitive.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inherited Members
    IAttribute.CopyTo(IAttribute)
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public interface IMaxNonCompetitiveBoostAttribute : IAttribute

    Properties

    CompetitiveTerm

    This is the term or null of the term that triggered the boost change.

    Declaration
    BytesRef CompetitiveTerm { get; set; }
    Property Value
    Type Description
    BytesRef

    MaxNonCompetitiveBoost

    This is the maximum boost that would not be competitive.

    Declaration
    float MaxNonCompetitiveBoost { get; set; }
    Property Value
    Type Description
    float
    Back to top Copyright © 2024 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.