Class TemplateConfig
java.lang.Object
org.opensearch.client.opensearch.core.msearch_template.TemplateConfig
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TemplateConfig> Json deserializer forTemplateConfig -
Method Summary
Modifier and TypeMethodDescriptionfinal Booleanexplain()API name:explainfinal Stringid()ID of the search template to use.static TemplateConfigparams()API name:paramsfinal Booleanprofile()API name:profilevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringsource()An inline search template.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
Json deserializer forTemplateConfig
-
-
Method Details
-
of
-
explain
API name:explain -
id
ID of the search template to use. If no source is specified, this parameter is required.API name:
id -
params
API name:params -
profile
API name:profile -
source
An inline search template. Supports the same parameters as the search API's request body. Also supports Mustache variables. If no id is specified, this parameter is required.API name:
source -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupTemplateConfigDeserializer
protected static void setupTemplateConfigDeserializer(ObjectDeserializer<TemplateConfig.Builder> op)
-