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

Most upvoted comments

@VachaShah I think nothing is stopping us from making the release, wdyt? (number of important fixes are in)

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.