Class TemplateConfig
java.lang.Object
co.elastic.clients.elasticsearch.core.msearch_template.TemplateConfig
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TemplateConfig>Json deserializer forTemplateConfig -
Method Summary
Modifier and TypeMethodDescriptionfinal Booleanexplain()Iftrue, returns detailed information about score calculation as part of each hit.final Stringid()ID of the search template to use.static TemplateConfigparams()Key-value pairs used to replace Mustache variables in the template.final Booleanprofile()Iftrue, the query execution is profiled.voidserialize(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.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTemplateConfig
-
-
Method Details
-
of
-
explain
Iftrue, returns detailed information about score calculation as part of each hit.API name:
explain -
id
ID of the search template to use. If no source is specified, this parameter is required.API name:
id -
params
Key-value pairs used to replace Mustache variables in the template. The key is the variable name. The value is the variable value.API name:
params -
profile
Iftrue, the query execution is profiled.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
-
toString
-
setupTemplateConfigDeserializer
protected static void setupTemplateConfigDeserializer(ObjectDeserializer<TemplateConfig.Builder> op)
-