Class DateValueBoost
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.boost.DateValueBoost
-
-
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 DateValueBoost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetFactor()Factor to alter the impact of a boost on the score of a document.StringgetName()Boost.OperationgetOperation()The arithmetic operation used to combine the original document score with your boost value.Boost.BoostTypegetType()Type of boostList<OffsetDateTime>getValue()The value to exact match on.DateValueBoostsetFactor(BigDecimal factor)Factor to alter the impact of a boost on the score of a document.DateValueBoostsetName(String name)DateValueBoostsetOperation(Boost.Operation operation)The arithmetic operation used to combine the original document score with your boost value.DateValueBoostsetValue(List<OffsetDateTime> value)The value to exact match on.
-
-
-
Method Detail
-
getType
public Boost.BoostType getType()
Description copied from interface:BoostType of boost
-
getValue
public List<OffsetDateTime> getValue()
The value to exact match on.- Returns:
- A List of dates
-
getOperation
public Boost.Operation getOperation()
The arithmetic operation used to combine the original document score with your boost value. Can be add or multiply. Defaults to add.- Returns:
- The operation
-
getFactor
public BigDecimal getFactor()
Factor to alter 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.
-
setName
public DateValueBoost setName(String name)
-
setValue
public DateValueBoost setValue(List<OffsetDateTime> value)
The value to exact match on.- Parameters:
value- One or more values to match on- Returns:
this.
-
setOperation
public DateValueBoost setOperation(Boost.Operation operation)
The arithmetic operation used to combine the original document score with your boost value. Can be add or multiply. Defaults to add.- Parameters:
operation- The operation to use to boost the score- Returns:
this.
-
setFactor
public DateValueBoost setFactor(BigDecimal factor)
Factor to alter 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.
-
-