FunctionScoreQuery

zio.elasticsearch.query.FunctionScoreQuery
sealed trait FunctionScoreQuery[S] extends ElasticQuery[S]

Attributes

Graph
Supertypes
trait ElasticQuery[S]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Sets the boostMode parameter for the zio.elasticsearch.query.FunctionScoreQuery. It defines how computed score is combined with score of the query.

Sets the boostMode parameter for the zio.elasticsearch.query.FunctionScoreQuery. It defines how computed score is combined with score of the query.

Value parameters

value

Computed score and score of the query can be combined in following ways:

Attributes

Returns

an instance of zio.elasticsearch.query.FunctionScoreQuery enriched with the boostMode parameter.

Sets the maxBoost parameter for the zio.elasticsearch.query.FunctionScoreQuery. It restricts the new score not to exceed a certain limit by setting this parameter.

Sets the maxBoost parameter for the zio.elasticsearch.query.FunctionScoreQuery. It restricts the new score not to exceed a certain limit by setting this parameter.

Value parameters

value

a non-negative real number used for the maxBoost

Attributes

Returns

an instance of zio.elasticsearch.query.FunctionScoreQuery enriched with the maxBoost parameter.

Sets the minScore parameter for the zio.elasticsearch.query.FunctionScoreQuery. To exclude documents that do not meet a certain score threshold the minScore parameter can be set to the desired score threshold.

Sets the minScore parameter for the zio.elasticsearch.query.FunctionScoreQuery. To exclude documents that do not meet a certain score threshold the minScore parameter can be set to the desired score threshold.

Value parameters

value

a non-negative real number used for the minScore

Attributes

Returns

an instance of zio.elasticsearch.query.FunctionScoreQuery enriched with the minScore parameter.

def query[S1 <: S](value: ElasticQuery[S1]): FunctionScoreQuery[S1]

Sets the query parameter for the zio.elasticsearch.query.FunctionScoreQuery. Represents a query to be executed in elasticsearch and modified by zio.elasticsearch.query.FunctionScore parameters.

Sets the query parameter for the zio.elasticsearch.query.FunctionScoreQuery. Represents a query to be executed in elasticsearch and modified by zio.elasticsearch.query.FunctionScore parameters.

Type parameters

S1

the type of the zio.elasticsearch.query.ElasticQuery for type shrinking

Value parameters

value

a zio.elasticsearch.query.ElasticQuery to be executed

Attributes

Returns

an instance of zio.elasticsearch.query.FunctionScoreQuery enriched with the query parameter.

Sets the scoreMode parameter for the zio.elasticsearch.query.FunctionScoreQuery. The scoreMode parameter specifies how the computed scores are combined.

def withFunctions[S1 <: S](functions: FunctionScoreFunction[S1]*): FunctionScoreQuery[S1]

Adds one or multiple zio.elasticsearch.query.FunctionScoreFunction to existing zio.elasticsearch.query.FunctionScore query.

Adds one or multiple zio.elasticsearch.query.FunctionScoreFunction to existing zio.elasticsearch.query.FunctionScore query.

Type parameters

S1

the type of the zio.elasticsearch.query.FunctionScoreFunction for type shrinking

Value parameters

functions

multiple zio.elasticsearch.query.FunctionScoreFunction to be added to query

Attributes

Returns

an instance of zio.elasticsearch.query.FunctionScoreQuery enriched with the functionScoreFunctions parameter.

Inherited and Abstract methods

def boost(value: Double): FunctionScoreQuery[S]

Sets the boost parameter for this zio.elasticsearch.query.ElasticQuery. The boost value is a positive multiplier applied to the score of documents matching the query. A value greater than 1 increases the relevance score of matching documents, while a value less than 1 decreases it. The default boost value is 1.

Sets the boost parameter for this zio.elasticsearch.query.ElasticQuery. The boost value is a positive multiplier applied to the score of documents matching the query. A value greater than 1 increases the relevance score of matching documents, while a value less than 1 decreases it. The default boost value is 1.

Value parameters

value

a non-negative real number to set boost parameter to

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the boost value set.

Inherited from:
HasBoost (hidden)