|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MaxNonCompetitiveBoostAttribute
Add this Attribute
to a fresh AttributeSource
before calling
MultiTermQuery.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 MultiTermQuery.getTermsEnum(Terms,AttributeSource)
.
TopTermsRewrite
uses this attribute to
inform all enums about the current boost, that is not competitive.
Method Summary | |
---|---|
BytesRef |
getCompetitiveTerm()
This is the term or null of the term that triggered the boost change. |
float |
getMaxNonCompetitiveBoost()
This is the maximum boost that would not be competitive. |
void |
setCompetitiveTerm(BytesRef competitiveTerm)
This is the term or null of the term that triggered the boost change. |
void |
setMaxNonCompetitiveBoost(float maxNonCompetitiveBoost)
This is the maximum boost that would not be competitive. |
Method Detail |
---|
void setMaxNonCompetitiveBoost(float maxNonCompetitiveBoost)
float getMaxNonCompetitiveBoost()
void setCompetitiveTerm(BytesRef competitiveTerm)
null
of the term that triggered the boost change.
BytesRef getCompetitiveTerm()
null
of the term that triggered the boost change. Default is null
, which means every term is competitoive.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |