opensearch-java: [BUG] Bulk UpdateOperation misses upsert options
What is the bug?
The UpdateOperation only supports setting a document.
There are no options for defining upserts like script, (scripted-)upsert, docAsUpsert etc. as in the common org.opensearch.client.opensearch.core.UpdateRequest
In Elasticsearch these settings are done for bulks via UpdateAction which can be set into the UpdateOperation.
How can one reproduce the bug?
n/a
What is the expected behavior?
Bulk UpdateOperations should support all update/upsert options as in org.opensearch.client.opensearch.core.UpdateRequest
What is your host/environment?
Windows and Linux, Java 17 OpenSearch server 2.4.0 OpenSearch client 2.1.0
Do you have any screenshots?
n/a
Do you have any additional context?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (6 by maintainers)
Commits related to this issue
- Fixes #282 — committed to urinud/opensearch-java by urinud 3 years ago
- Fixes #282 Signed-off-by: Uriel Dan Nudelman <urinud@gmail.com> — committed to urinud/opensearch-java by urinud 3 years ago
- Fixes #282 Signed-off-by: Uriel Dan Nudelman <urinud@gmail.com> — committed to urinud/opensearch-java by urinud 3 years ago
- # This is a combination of 3 commits. # This is the 1st commit message: Fixes #282 Signed-off-by: Uriel Dan Nudelman <urinud@gmail.com> # This is the commit message #2: Fixes #282 Signed-off-by: ... — committed to urinud/opensearch-java by urinud 3 years ago
- Fixes #282 Signed-off-by: Uriel Dan Nudelman <urinud@gmail.com> — committed to urinud/opensearch-java by urinud 3 years ago
Yeah nothing is blocking, we can do the next release. I will wait for some fixes that are already in PRs to go in so we can release them as well.