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
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public interface IBoostAttribute : IAttribute
Properties
| Improve this Doc View SourceBoost
Gets or Sets the boost in this attribute. Default is 1.0f
.
Declaration
float Boost { get; set; }
Property Value
Type | Description |
---|---|
System.Single |