Class SumScoreFunction
- java.lang.Object
-
- com.atlassian.confluence.search.v2.score.SumScoreFunction
-
- All Implemented Interfaces:
ComposableScoreFunction
,ScoreFunction
public final class SumScoreFunction extends Object implements ComposableScoreFunction
ScoreFunction which sums composed functions and constants. On OpenSearch, this class is not supported to be used asComposableScoreFunction
i.e. to be composed inside anotherScoreFunction
. In a future release,ComposableScoreFunction
interface will be removed from this class, i.e. it will only implementScoreFunction
directly.- Since:
- 7.0
-
-
Constructor Summary
Constructors Constructor Description SumScoreFunction(@NonNull List<ComposableScoreFunction> functions, @NonNull List<Double> constants)
SumScoreFunction(ComposableScoreFunction function1, ComposableScoreFunction function2, ComposableScoreFunction... functions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Double>
getConstants()
List<ComposableScoreFunction>
getFunctions()
-
-
-
Constructor Detail
-
SumScoreFunction
public SumScoreFunction(ComposableScoreFunction function1, ComposableScoreFunction function2, ComposableScoreFunction... functions)
-
SumScoreFunction
public SumScoreFunction(@NonNull List<ComposableScoreFunction> functions, @NonNull List<Double> constants)
-
-
Method Detail
-
getFunctions
public List<ComposableScoreFunction> getFunctions()
-
-