MaxNonCompetitiveBoostAttribute

Add this Attribute to a fresh AttributeSource before calling . 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 [ ] to an empty AttributeSource that is shared for all segments during query rewrite. This attribute source is passed to all segment enums on . TopTermsRewrite uses this attribute to inform all enums about the current boost, that is not competitive.

Inheritors

Properties

Link copied to clipboard
abstract val competitiveTerm: BytesRef?

This is the term or null of the term that triggered the boost change. Default is null, which means every term is competitoive.

Link copied to clipboard

This is the maximum boost that would not be competitive.

Functions

Link copied to clipboard
abstract fun setCompetitiveTerm(competitiveTerm: BytesRef?)

This is the term or null of the term that triggered the boost change.