[Type removal] Ignore _type field in bulk request#3504
[Type removal] Ignore _type field in bulk request#3504nknize merged 1 commit intoopensearch-project:2.0from
Conversation
Signed-off-by: Suraj Singh <surajrider@gmail.com>
|
Gradle check has test failures internally but reported succeeded in the end. Opened #3506 All failures belongs to
|
|
start gradle check |
nknize
left a comment
There was a problem hiding this comment.
LGTM! Thanks for adding the new bulk-with-deprecated-types test.
Thanks @nknize for the review. Actually, I have created 2.x PR. There were conflicting changes in 2.0 and 2.x and hence created separate PRs. |
oic... looks like a type removal PR wasn't backported to 2.0 hence the conflicts. |
…-project#3504)" This reverts commit 5bd7236.
* Revert "Revert removal of typed end-points for bulk, search, index APIs (#3524) (#3528)" This reverts commit fc8803f. * Revert "[Type removal] Ignore _type field in bulk request (#3504)" This reverts commit 5bd7236. Signed-off-by: Suraj Singh <surajrider@gmail.com> Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Suraj Singh surajrider@gmail.com
Description
Don't fail bulk request on _type field in bulk request. This change reduces the friction with external clients which still uses _type field in bulk requests. The change include creating bulk request parser with errorOnType set to false to accommodate _type params. It also add some of test cases previously removed in #2215 to verify the assumption
Related
#2215
Issues Resolved
#3484
Testing
Request
Before change
After fix
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.