Package org.apache.lucene.search
Interface BoostAttribute
- 
- All Superinterfaces:
 Attribute
- All Known Implementing Classes:
 BoostAttributeImpl
public interface BoostAttribute extends Attribute
Add thisAttributeto aTermsEnumreturned byMultiTermQuery.getTermsEnum(Terms,AttributeSource)and update the boost on each returned term. This enables to control the boost factor for each matching term inMultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITEorTopTermsRewritemode.FuzzyQueryis 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. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetBoost()Retrieves the boost, default is1.0f.voidsetBoost(float boost)Sets the boost in this attribute 
 -