MaxNonCompetitiveBoostAttributeImpl

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override 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
open override var maxNonCompetitiveBoost: Float

This is the maximum boost that would not be competitive.

Functions

Link copied to clipboard
open override fun clear()

Clears the values in this AttributeImpl and resets it to its default value. If this implementation implements more than one Attribute interface it clears all.

Link copied to clipboard
open override fun clone(): AttributeImpl

In most cases the clone is, and should be, deep in order to be able to properly capture the state of all attributes.

Link copied to clipboard
open override fun copyTo(target: AttributeImpl)

Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports.

Link copied to clipboard
open fun end()

Clears the values in this AttributeImpl and resets it to its value at the end of the field. If this implementation implements more than one Attribute interface it clears all.

Link copied to clipboard
fun reflectAsString(prependAttClass: Boolean): String

This method returns the current attribute values as a string in the following format by calling the .reflectWith method:

Link copied to clipboard
open override fun reflectWith(reflector: AttributeReflector)

This method is for introspection of attributes, it should simply add the key/values this attribute holds to the given AttributeReflector.

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

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