Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateOperation is not able to use docAsUpsert or script options yet #72

Closed
VincentMLiu opened this issue Dec 17, 2021 · 1 comment
Closed
Labels
Milestone

Comments

@VincentMLiu
Copy link

VincentMLiu commented Dec 17, 2021

I'm trying to build a Bulk request with some upsert operations, but it seems not supported in this version's Java Client yet.
I've seen the docAsUpsert and Script in the UpdateRequest. Will these options be supported at UpdateOperation in the next version?

@VincentMLiu VincentMLiu changed the title UpdateOpertion is not able to use docAsUpsert or script options yet UpdateOperation is not able to use docAsUpsert or script options yet Dec 17, 2021
@swallez swallez added Area: Specification Related to the API spec used to generate client code v7.16.2 labels Jan 21, 2022
@swallez swallez added this to the v7.17.0 milestone Jan 24, 2022
@swallez swallez added >api-spec:fixed and removed Area: Specification Related to the API spec used to generate client code labels Jan 24, 2022
@swallez
Copy link
Member

swallez commented Jan 24, 2022

This has been fixed in PR #125

Bulk update operations now contain an UpdateAction that has these properties. See example from the tests below:

.operations(_1 -> _1
.update(_2 -> _2
.index("foo")
.id("gh")
.action(_3 -> _3
.docAsUpsert(true)
.doc(appData))
)

@swallez swallez closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants