Class WriteOperation

java.lang.Object
co.elastic.clients.elasticsearch.core.bulk.BulkOperationBase
co.elastic.clients.elasticsearch.core.bulk.WriteOperation
All Implemented Interfaces:
JsonpSerializable
Direct Known Subclasses:
CreateOperation, IndexOperation

public abstract class WriteOperation extends BulkOperationBase
See Also:
  • Constructor Details

  • Method Details

    • dynamicTemplates

      public final Map<String,String> dynamicTemplates()
      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

    • pipeline

      @Nullable public final String pipeline()
      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

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

      API name: require_alias

    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class BulkOperationBase
    • setupWriteOperationDeserializer

      protected static <BuilderT extends WriteOperation.AbstractBuilder<BuilderT>> void setupWriteOperationDeserializer(ObjectDeserializer<BuilderT> op)