Closed
Description
Describe the feature: Using the simulation API for custom pipelines, it is not possible to find out, if a document would be dropped
Create a pipeline that drops all documents
PUT _ingest/pipeline/droppipeline
{
"processors": [
{
"drop": {}
}
]
}
PUT foo/bar/1?pipeline=droppipeline
{
"message": "123"
}
# document does not exist
GET foo/bar/1
However running the simulate API does not indicate that the document will not be created
POST _ingest/pipeline/droppipeline/_simulate
{
"docs": [
{
"_source": {
"message": "text"
}
}
]
}
returns
{
"docs" : [
{
"doc" : {
"_index" : "_index",
"_type" : "_type",
"_id" : "_id",
"_source" : {
"message" : "text"
},
"_ingest" : {
"timestamp" : "2018-12-03T10:16:52.719501Z"
}
}
}
]
}