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
@JsonpDeserializable public class FunctionScoreQuery extends QueryBase implements QueryVariant
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FunctionScoreQuery.Builder
Builder forFunctionScoreQuery
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<FunctionScoreQuery>
_DESERIALIZER
Json deserializer forFunctionScoreQuery
-
Method Summary
Modifier and Type Method Description Query.Kind
_queryKind()
Query variant kind.FunctionBoostMode
boostMode()
API name:boost_mode
java.util.List<FunctionScore>
functions()
API name:functions
java.lang.Double
maxBoost()
API name:max_boost
java.lang.Double
minScore()
API name:min_score
static FunctionScoreQuery
of(java.util.function.Function<FunctionScoreQuery.Builder,ObjectBuilder<FunctionScoreQuery>> fn)
Query
query()
API name:query
FunctionScoreMode
scoreMode()
API name:score_mode
protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupFunctionScoreQueryDeserializer(ObjectDeserializer<FunctionScoreQuery.Builder> op)
Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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(java.util.function.Function<FunctionScoreQuery.Builder,ObjectBuilder<FunctionScoreQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKind
in interfaceQueryVariant
-
boostMode
API name:boost_mode
-
functions
API name:functions
-
maxBoost
@Nullable public final java.lang.Double maxBoost()API name:max_boost
-
minScore
@Nullable public final java.lang.Double minScore()API name:min_score
-
query
API name:query
-
scoreMode
API name:score_mode
-
serializeInternal
- Overrides:
serializeInternal
in classQueryBase
-
setupFunctionScoreQueryDeserializer
protected static void setupFunctionScoreQueryDeserializer(ObjectDeserializer<FunctionScoreQuery.Builder> op)
-