Package com.atlassian.confluence.search.v2.score
@SearchPrimitive
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
-
ClassDescriptionScores of component functions are averaged according to
weights
.Marker interface for a function that can be composed by e.g.A function that returns a constant scoreParameters for decay function.Represents field its value is of typedouble
.An exponential decay function.The Type class encapsulates the modification types that can be applied to the score/value product.Specifies a numerical field from which data will be drawn for score function.A function that delegates to the provided function if the document satisfies a filter, otherwise it will return an empty score.The score of the first matching component functions is used.Represents field its value is of typefloat
.A factory to apply function scoring on search queriesA gaussian decay function.Represents field its value is of typeint
.Linear decay function applied to a field value.Represents field its value is of typelong
.Maximum score of component functions is used.Minimum score of component functions is used.Scores of component functions are multiplied.Marker interface for a function providing score forFunctionScoreQuery
.Factory for creatingScoreFunction
which are used in site-wide confluence search.ScoreFunction which sums composed functions and constants.