Interface Boost
-
- All Known Implementing Classes:
DateValueBoost,FunctionalBoost,GeolocationProximityBoost,NumberProximityBoost,NumericValueBoost,RecencyBoost,TextValueBoost
public interface BoostRepresents a Search Boost
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBoost.BoostTypeThe boosting types that are availablestatic classBoost.FunctionDecay functions score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin
See Supported Decay Functionsstatic classBoost.OperationThe boosting operations that are available
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigDecimalgetFactor()Alter the impact of a boost on the score of a document.StringgetName()The name of the boostBoost.BoostTypegetType()Type of boostBoostsetFactor(BigDecimal factor)Alter the impact of a boost on the score of a document.BoostsetName(String name)Set the name of the boost
-
-
-
Method Detail
-
getName
String getName()
The name of the boost- Returns:
- the name
-
setName
Boost setName(String name)
Set the name of the boost- Parameters:
name- The boost name- Returns:
- The Boost object
-
getType
Boost.BoostType getType()
Type of boost- Returns:
- The boost type
-
getFactor
BigDecimal getFactor()
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. The factor parameter multiplies the value of the boost but does not significantly affect the decay function scale.- Returns:
- The factor
-
setFactor
Boost setFactor(BigDecimal factor)
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. The factor parameter multiplies the value of the boost but does not significantly affect the decay function scale.- Parameters:
factor- A value between (inclusive) 0.0 and 10.0- Returns:
- The boost
-
-