java.lang.Object
org.opensearch.client.opensearch.core.msearch_template.TemplateConfig
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable

@JsonpDeserializable public class TemplateConfig extends Object implements PlainJsonSerializable
  • Field Details

  • Method Details

    • of

    • explain

      @Nullable public final Boolean explain()
      API name: explain
    • id

      @Nullable public final String id()
      ID of the search template to use. If no source is specified, this parameter is required.

      API name: id

    • params

      public final Map<String,JsonData> params()
      API name: params
    • profile

      @Nullable public final Boolean profile()
      API name: profile
    • source

      @Nullable public final 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupTemplateConfigDeserializer

      protected static void setupTemplateConfigDeserializer(ObjectDeserializer<TemplateConfig.Builder> op)