Class NumberProximityBoost
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.boost.NumberProximityBoost
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface co.elasticsearch.enterprisesearch.client.model.request.search.boost.Boost
Boost.BoostType, Boost.Function, Boost.Operation
-
-
Constructor Summary
Constructors Constructor Description NumberProximityBoost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetCenter()The mode of the distribution, scores based on proximity to this valueBigDecimalgetFactor()Alter the impact of a boost on the score of a document.Boost.FunctiongetFunction()Type of function to calculate the boost value.StringgetName()The name of the boostBoost.BoostTypegetType()Type of boostNumberProximityBoostsetCenter(BigDecimal center)The mode of the distribution, scores based on proximity to this valueNumberProximityBoostsetFactor(BigDecimal factor)Alter the impact of a boost on the score of a document.NumberProximityBoostsetFunction(Boost.Function function)Type of function to calculate the boost value.NumberProximityBoostsetName(String name)Set the name of the boost
-
-
-
Method Detail
-
getType
public Boost.BoostType getType()
Description copied from interface:BoostType of boost
-
getCenter
public BigDecimal getCenter()
The mode of the distribution, scores based on proximity to this value- Returns:
- The center
-
getFunction
public Boost.Function getFunction()
Type of function to calculate the boost value. Can be linear, exponential, or gaussian.- Returns:
- the function
-
getFactor
public BigDecimal getFactor()
Description copied from interface:BoostAlter the impact of a boost on the score of a document. Must be between 0 and 10. Defaults to 1.0. A negative factor or fractional factor will not deboost a result. The factor parameter multiplies the value of the boost but does not significantly affect the decay function scale.
-
setName
public NumberProximityBoost setName(String name)
Description copied from interface:BoostSet the name of the boost
-
setCenter
public NumberProximityBoost setCenter(BigDecimal center)
The mode of the distribution, scores based on proximity to this value- Parameters:
center- The mode of the distribution, scores based on proximity to this value- Returns:
this.
-
setFunction
public NumberProximityBoost setFunction(Boost.Function function)
Type of function to calculate the boost value. Can be linear, exponential, or gaussian.- Parameters:
function- The function to calculate the boost- Returns:
this.
-
setFactor
public NumberProximityBoost setFactor(BigDecimal factor)
Description copied from interface:BoostAlter the impact of a boost on the score of a document. Must be between 0 and 10. Defaults to 1.0. A negative factor or fractional factor will not deboost a result. The factor parameter multiplies the value of the boost but does not significantly affect the decay function scale.
-
-