Class TemplateConfig
java.lang.Object
co.elastic.clients.elasticsearch.core.msearch_template.TemplateConfig
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<TemplateConfig>
Json deserializer forTemplateConfig
-
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
explain()
Iftrue
, returns detailed information about score calculation as part of each hit.final String
id()
ID of the search template to use.static TemplateConfig
params()
Key-value pairs used to replace Mustache variables in the template.final Boolean
profile()
Iftrue
, the query execution is profiled.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
source()
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTemplateConfigDeserializer
protected static void setupTemplateConfigDeserializer(ObjectDeserializer<TemplateConfig.Builder> op)
-