Bulk REST API allows arbitrary fields after action #43774
Labels
:Distributed/CRUD
A catch all label for issues around indexing, updating and getting a doc by id. Not search.
>enhancement
Team:Distributed
Meta label for distributed team
While trying to refresh a specific index within a
bulk
request containing multiple indices, I came across an unexpected scenario where unrecognized field names were ignored:In ES 7.2.0, at least, this results in the document being indexed.
However, if you put
abc
in front of theindex
action, then it triggers an expected error [from my perspective]:results in
We just need to update the parser to ensure that the JSON object is empty after finding the action. I can imagine that some people think some follow-on fields are taking effect as it is today.
The text was updated successfully, but these errors were encountered: