-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop document in ingest pipeline #23726
Comments
Is it in the case of an exception in the pipeline? I mean that we don't have conditionals so why would you not index a document that you sent to indexation process? |
Conditionals are next ;) (although there are scripts anyway) But eg a document is going to an index that I no longer want to use - I want to be able to drop the document instead |
I wonder if we should have a |
@clintongormley I know Beats requested this feature a while back... I was not aware that an empty string One way to achieve this is to run a Would ES need to change to support this? I tried indexing a document with an empty {
"took": 0,
"errors": true,
"items": [
{
"index": {
"_index": "",
"_type": "type",
"_id": "id",
"status": 500,
"error": {
"type": "string_index_out_of_bounds_exception",
"reason": "String index out of range: 0"
}
}
}
]
} maybe if we introduce a new status for index items that are intended to be dropped? Maybe the pipeline can update metadata that will follow-up with an index request with a and respond with: {
"took": 884,
"errors": false,
"items": [
{
"index": {
"_index": "",
"_type": "type",
"_id": "id",
"_version": 1,
"result": "dropped",
"created": false,
"status": 200
}
}
]
} |
No, it was a suggestion. I see the same string length exception that you do. I like your suggested response for the The one problem is that I don't see how to trigger the |
For now (before we have conditionals - was not aware that was a plan BTW), |
That said we can also support both. If |
+1 for a clean way to drop messages |
Closing due to the lack of infrastructure for properly handling this. Feel free to re-open if this comes up again |
Hurray! We are going to support it finally! See #32278 |
* INGEST: Implement Drop Processor * Adjust Processor API * Implement Drop Processor * Closes #23726
* INGEST: Implement Drop Processor * Adjust Processor API * Implement Drop Processor * Closes elastic#23726
It'd be really useful to be able to drop a document in an ingest pipeline, ie to not index it at all.
Perhaps, by setting
_index
to""
?The text was updated successfully, but these errors were encountered: