Class SimulateBulkRequest

All Implemented Interfaces:
org.apache.lucene.util.Accountable, CompositeIndicesRequest, WriteRequest<BulkRequest>, Writeable, RefCounted, TaskAwareRequest, RawIndexingDataTransportRequest

public class SimulateBulkRequest extends BulkRequest
This extends BulkRequest with support for providing substitute pipeline definitions, component template definitions, and index template substitutions. In a user request, the substitutions will look something like this: "pipeline_substitutions": { "my-pipeline-1": { "processors": [ { "set": { "field": "my-new-boolean-field", "value": true } } ] }, "my-pipeline-2": { "processors": [ { "set": { "field": "my-new-boolean-field", "value": true }, "rename": { "field": "old_field", "target_field": "new field" } } ] } }, "component_template_substitutions": { "my-template-1": { "template": { "settings": { "number_of_shards": 1 }, "mappings": { "_source": { "enabled": false }, "properties": { "host_name": { "type": "keyword" }, "created_at": { "type": "date", "format": "EEE MMM dd HH:mm:ss Z yyyy" } } } } }, "index_template_substitutions": { "my-index-template-1": { "template": { "index_patterns": ["foo*", "bar*"] "composed_of": [ "component-template-1", "component-template-2" ] } } } The pipelineSubstitutions Map held by this class is intended to be the result of XContentHelper.convertToMap(). The top-level keys are the pipelineIds ("my-pipeline-1" and "my-pipeline-2" in the example above). The values are the Maps of "processors" to the List of processor definitions.