Class ScriptScoreQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.ScriptScoreQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<ScriptScoreQuery.Builder,ScriptScoreQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ScriptScoreQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<ScriptScoreQuery.Builder,ScriptScoreQuery>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ScriptScoreQuery> Json deserializer forScriptScoreQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant kind.static ScriptScoreQuery.Builderbuilder()booleaninthashCode()final FloatminScore()Documents with a score lower than this floating point number are excluded from the search results.static ScriptScoreQueryfinal Queryquery()Required - API name:queryfinal Scriptscript()Required - API name:scriptprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch._types.query_dsl.QueryVariant
toQueryMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forScriptScoreQuery
-
-
Method Details
-
of
public static ScriptScoreQuery of(Function<ScriptScoreQuery.Builder, ObjectBuilder<ScriptScoreQuery>> fn) -
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
minScore
Documents with a score lower than this floating point number are excluded from the search results.API name:
min_score -
query
Required - API name:query -
script
Required - API name:script -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ScriptScoreQuery.Builder,ScriptScoreQuery> - Returns:
- a new builder instance.
-
builder
-
setupScriptScoreQueryDeserializer
protected static void setupScriptScoreQueryDeserializer(ObjectDeserializer<ScriptScoreQuery.Builder> op) -
hashCode
public int hashCode() -
equals
-