Gennady Lisiansky
Gennady Lisiansky

Reputation: 37

Migration from Spring Data Elasticsearch 4.0.0.M3 to M4

In Spring Data Elasticsearch 4.0.0.M3 I used UpdateQuery.builder().withUpdateRequest() while building UpdateRequest directly. So I could set retryOnConflict() parameter.

After moving to M4 I can't set it anymore because there is no withUpdateRequest() method in the UpdateQuery and the UpdateRequst is being built internally. UpdateQuery.builder doesn't provide an option to set retryOnConflict().

My question is what is the right way to migrate my code so that I will have full control over UpdateRequst?

Thanks.

Upvotes: 0

Views: 279

Answers (1)

Abacus
Abacus

Reputation: 19471

wait for 4.0.0.RC1. I just merged the code to expose all the update query parameters on the UpdateQuery.builder

Upvotes: 1

Related Questions