Class TemplateConfig
java.lang.Object
co.elastic.clients.elasticsearch.core.msearch_template.TemplateConfig
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TemplateConfig extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemplateConfig.BuilderBuilder forTemplateConfig. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TemplateConfig>_DESERIALIZERJson deserializer forTemplateConfig -
Method Summary
Modifier and Type Method Description java.lang.Booleanexplain()API name:explainjava.lang.Stringid()ID of the search template to use.static TemplateConfigof(java.util.function.Function<TemplateConfig.Builder,ObjectBuilder<TemplateConfig>> fn)java.util.Map<java.lang.String,JsonData>params()API name:paramsjava.lang.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 voidsetupTemplateConfigDeserializer(ObjectDeserializer<TemplateConfig.Builder> op)java.lang.Stringsource()An inline search template.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTemplateConfig
-
-
Method Details
-
of
public static TemplateConfig of(java.util.function.Function<TemplateConfig.Builder,ObjectBuilder<TemplateConfig>> fn) -
explain
@Nullable public final java.lang.Boolean explain()API name:explain -
id
@Nullable public final java.lang.String 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
@Nullable public final java.lang.Boolean profile()API name:profile -
source
@Nullable public final java.lang.String 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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTemplateConfigDeserializer
protected static void setupTemplateConfigDeserializer(ObjectDeserializer<TemplateConfig.Builder> op)
-