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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WriteOperation
(WriteOperation.AbstractBuilder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionA map from the full name of fields to the name of dynamic templates.final String
pipeline()
ID of the pipeline to use to preprocess incoming documents.final Boolean
Iftrue
, the request’s actions must target an index alias.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends WriteOperation.AbstractBuilder<BuilderT>>
voidsetupWriteOperationDeserializer
(ObjectDeserializer<BuilderT> op) Methods inherited from class co.elastic.clients.elasticsearch.core.bulk.BulkOperationBase
id, ifPrimaryTerm, ifSeqNo, index, routing, serialize, setupBulkOperationBaseDeserializer, toString, version, versionType
-
Constructor Details
-
WriteOperation
-
-
Method Details
-
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
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
Iftrue
, the request’s actions must target an index alias.API name:
require_alias
-
serializeInternal
- Overrides:
serializeInternal
in classBulkOperationBase
-
setupWriteOperationDeserializer
protected static <BuilderT extends WriteOperation.AbstractBuilder<BuilderT>> void setupWriteOperationDeserializer(ObjectDeserializer<BuilderT> op)
-