|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BoostAttribute
Add this Attribute
to a TermsEnum
returned by MultiTermQuery.getTermsEnum(Terms,AttributeSource)
and update the boost on each returned term. This enables to control the boost factor
for each matching term in MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE
or
TopTermsRewrite
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
.
Method Summary | |
---|---|
float |
getBoost()
Retrieves the boost, default is 1.0f . |
void |
setBoost(float boost)
Sets the boost in this attribute |
Method Detail |
---|
void setBoost(float boost)
float getBoost()
1.0f
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |