Class FunctionScoreQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.FunctionScoreQuery
- All Implemented Interfaces:
QueryVariant,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FunctionScoreQuery>Json deserializer forFunctionScoreQuery -
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final FunctionBoostModeDefines how he newly computed score is combined with the score of the queryfinal List<FunctionScore>One or more functions that compute a new score for each document returned by the query.final DoublemaxBoost()Restricts the new score to not exceed the provided limit.final DoubleminScore()Excludes documents that do not meet the provided score threshold.static FunctionScoreQueryfinal Queryquery()A query that determines the documents for which a new score is computed.final FunctionScoreModeSpecifies how the computed scores are combinedprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forFunctionScoreQuery
-
-
Method Details
-
of
public static FunctionScoreQuery of(Function<FunctionScoreQuery.Builder, ObjectBuilder<FunctionScoreQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
boostMode
Defines how he newly computed score is combined with the score of the queryAPI name:
boost_mode -
functions
One or more functions that compute a new score for each document returned by the query.API name:
functions -
maxBoost
Restricts the new score to not exceed the provided limit.API name:
max_boost -
minScore
Excludes documents that do not meet the provided score threshold.API name:
min_score -
query
A query that determines the documents for which a new score is computed.API name:
query -
scoreMode
Specifies how the computed scores are combinedAPI name:
score_mode -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupFunctionScoreQueryDeserializer
protected static void setupFunctionScoreQueryDeserializer(ObjectDeserializer<FunctionScoreQuery.Builder> op)
-