FunctionScore

data class FunctionScore(val query: QueryExpression? = null, val functions: List<FunctionScore.Function>, val boost: Float? = null, val scoreMode: FunctionScore.ScoreMode? = null, val boostMode: FunctionScore.BoostMode? = null, val minScore: Float? = null) : QueryExpression

Constructors

Link copied to clipboard
fun FunctionScore(query: QueryExpression? = null, functions: List<FunctionScore.Function>, boost: Float? = null, scoreMode: FunctionScore.ScoreMode? = null, boostMode: FunctionScore.BoostMode? = null, minScore: Float? = null)

Types

Link copied to clipboard
Link copied to clipboard
data class FieldValueFactor<T : Number>(val field: FieldOperations<T>, val factor: Float? = null, val missing: T? = null, val modifier: FunctionScore.FieldValueFactor.Modifier? = null, val filter: QueryExpression? = null) : FunctionScore.Function
Link copied to clipboard
abstract class Function : ObjExpression
Link copied to clipboard
data class RandomScore(val seed: Any? = null, val field: FieldOperations<*>? = null, val filter: QueryExpression? = null) : FunctionScore.Function
Link copied to clipboard
Link copied to clipboard
data class ScriptScore(val script: Script, val filter: QueryExpression? = null) : FunctionScore.Function
Link copied to clipboard
data class Weight(val weight: Float, val filter: QueryExpression? = null) : FunctionScore.Function

Functions

Link copied to clipboard
open override fun accept(ctx: Serializer.ObjectCtx, compiler: BaseSearchQueryCompiler)
Link copied to clipboard
open override fun children(): Iterator<Expression<*>>
Link copied to clipboard
open override fun clone(): FunctionScore
Link copied to clipboard
open override fun reduce(): QueryExpression?
Link copied to clipboard
open override fun rewrite(newNode: QueryExpressionNode<*>): FunctionScore
Link copied to clipboard
open override fun visit(ctx: Serializer.ObjectCtx, compiler: BaseSearchQueryCompiler)

Properties

Link copied to clipboard
val boost: Float? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val minScore: Float? = null
Link copied to clipboard
open override val name: String
Link copied to clipboard
val query: QueryExpression? = null
Link copied to clipboard