Class WriteOperation.AbstractBuilder<BuilderT extends WriteOperation.AbstractBuilder<BuilderT>>

All Implemented Interfaces:
WithJson<BuilderT>
Direct Known Subclasses:
CreateOperation.Builder, IndexOperation.Builder
Enclosing class:
WriteOperation

public abstract static class WriteOperation.AbstractBuilder<BuilderT extends WriteOperation.AbstractBuilder<BuilderT>> extends BulkOperationBase.AbstractBuilder<BuilderT>
  • Constructor Details

    • AbstractBuilder

      public AbstractBuilder()
  • Method Details

    • dynamicTemplates

      public final BuilderT dynamicTemplates(Map<String,String> map)
      A map from the full name of fields to the name of dynamic templates. Defaults to an empty map. If a name matches a dynamic template, then that template will be applied regardless of other match predicates defined in the template. If a field is already defined in the mapping, then this parameter won’t be used.

      API name: dynamic_templates

      Adds all entries of map to dynamicTemplates.

    • dynamicTemplates

      public final BuilderT dynamicTemplates(String key, String value)
      A map from the full name of fields to the name of dynamic templates. Defaults to an empty map. If a name matches a dynamic template, then that template will be applied regardless of other match predicates defined in the template. If a field is already defined in the mapping, then this parameter won’t be used.

      API name: dynamic_templates

      Adds an entry to dynamicTemplates.

    • pipeline

      public final BuilderT pipeline(@Nullable String value)
      ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter.

      API name: pipeline

    • requireAlias

      public final BuilderT requireAlias(@Nullable Boolean value)
      If true, the request’s actions must target an index alias.

      API name: require_alias