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.

    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 IMaxNonCompetitiveBoostAttribute : IAttribute

    Properties

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    MaxNonCompetitiveBoost

    This is the maximum boost that would not be competitive.

    Declaration
    float MaxNonCompetitiveBoost { get; set; }
    Property Value
    Type Description
    System.Single
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)