You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bulk api supports the following actions: create, delete, index, update. However, if the request contains an invalid operation then it silently ignores it.
Expected behavior
The api call should fail resulting in a proper error message, something like
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Unknown action line [3], expected one of [create, delete, index, update] but found [remove]"
}
],
"type": "illegal_argument_exception",
"reason": "Unknown action line [3], expected one of [create, delete, index, update] but found [remove]"
},
"status": 400
}
Host/Environment (please complete the following information):
OS: macOS
Version 12.6.1
Additional context
None
The text was updated successfully, but these errors were encountered:
What's the behavior if there is a line of malformed JSON or if a line omits the action all together? I think I agree that invalid requests should be rejected completely, but we should be consistent for all invalid cases.
What's the behavior if there is a line of malformed JSON or if a line omits the action all together? I think I agree that invalid requests should be rejected completely, but we should be consistent for all invalid cases.
Describe the bug
The bulk api supports the following actions:
create, delete, index, update
. However, if the request contains an invalid operation then it silently ignores it.To Reproduce
Given the following bulk request
The
_bulk
api successfully returnsExpected behavior
The api call should fail resulting in a proper error message, something like
Host/Environment (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: