Package com.atlassian.confluence.search.v2.score
This package provides search engine agnostic primitives required to construct
FunctionScoreQuery
. It was
designed to work when the search engine is remote. Classes encapsulate just enough information for mapping
FunctionScoreQuery
to a concrete search engine implementation.
The inspiration has been taken from Elasticsearch function score query.- Since:
- 7.0
-
Interface Summary Interface Description ComposableScoreFunction Marker interface for a function that can be composed by e.g.FieldValueSource Specifies a numerical field from which data will be drawn for score function.ScoreFunction Marker interface for a function providing score forFunctionScoreQuery
.ScoreFunctionFactory Factory for creatingScoreFunction
which are used in site-wide confluence search. -
Class Summary Class Description AverageScoreFunction Scores of component functions are averaged according toweights
.AverageScoreFunction.Builder DecayParameters Parameters for decay function.DecayParameters.Builder DocValuesFieldValueSource Represents binary doc values field its value is of typebyte[]
.DoubleFieldValueSource Represents field its value is of typedouble
.ExpDecayFunction An exponential decay function.FieldValueFactorFunction FloatFieldValueSource Represents field its value is of typefloat
.GaussDecayFunction A gaussian decay function.IntFieldValueSource Represents field its value is of typeint
.LinearDecayFunction Linear decay function applied to a field value.LongFieldValueSource Represents field its value is of typelong
.MaxScoreFunction Maximum score of component functions is used.MinScoreFunction Minimum score of component functions is used.MultiplyScoreFunction Scores of component functions are multiplied.StaircaseFunction Staircase decay function applied to a field value.SumScoreFunction ScoreFunction which sums composed functions and constants. -
Enum Summary Enum Description FieldValueFactorFunction.Modifier The Type class encapsulates the modification types that can be applied to the score/value product.