Simulate a pipeline
- POST also GET /_ingest/pipeline/{id}/_simulate
- POST also GET /_ingest/pipeline/_simulate
Run an ingest pipeline against a set of provided documents. You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.
Required authorization
- Cluster privileges read_pipeline
Request body
-
pipelineobject -
The pipeline to test. If you don't specify the
pipelinerequest path parameter, this parameter is required. If you specify both this and the request path parameter, the API only uses the request path parameter.
Response
application/json
-
docsobjectrequired -
docobject -
_version_type -
Supported values include:
internal: Use internal versioning that starts at 1 and increments with each update or delete.external: Only index the document if the specified version is strictly higher than the version of the stored document or if there is no existing document.external_gte: Only index the document if the specified version is equal or higher than the version of the stored document or if there is no existing document. NOTE: Theexternal_gteversion type is meant for special use cases and should be used with care. If used incorrectly, it can result in loss of data.
-
Values:
internalexternalexternal_gte