Closed garrison-stauffer closed 1 year ago
I understand this repo is deprecated, but if possible I'd like to add this behavior in the short term while we look towards upgrading to the official client in the future. If that isn't possible, then I'll start looking at the migration path in the short term.
Thanks in advance for the help!
@olivere apologies for the direct tag; I've been running with this change set on a forked version for a little over a month now with no issues. We've looked towards upgrading to OpenSearch but the client support (at least in its current state) leaves.. quite a lot to be desired. For the forseeable future it looks like we will be staying on ElasticSearch 7 with olivere/elastic, and if possible I'd like to remove our forked changes.
Would you have any concerns if I open a PR with the changes?
Which version of Elastic are you using?
Please describe the expected behavior
When we are using the Bulk API to issue delete requests, we should be able to use a
version_type=EXTERNAL_GTE
withversion=0
Please describe the actual behavior
When we use this in the Bulk API, the version is not being forwarded to ES and is having
-3
as its default (theMATCH_ANY
behavior). This leads to an error being returned by ElasticSearch:When I curl elasticsearch directly, it is able to support Version=0:
Any steps to reproduce the behavior?
The code is pretty messy, but we're basically just sending bulk requests to create + delete a record. Example code for the request:
I noticed that this issue has been resolved for the Bulk Indexing requests, which is why we've been able to do the first half of the reproduction steps. I'm wondering if there's any opposition to me opening a PR that adds the same behavior for the bulk delete api?