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
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public interface IMaxNonCompetitiveBoostAttribute : IAttribute
Properties
| Improve this Doc View SourceCompetitiveTerm
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 |
---|---|
System.Single |