Update API - Async on server-side

Is it possible to execute the following request asynchronously on the server side?

POST test/_update/1
  "script" : "ctx._source.new_field = 'value_of_new_field'"

By "server side", I mean server should write the request to the translog and respond immediately before applying any changes(get doc, execute script, index doc) .

I am using the Java rest client.

I do not think that is possible. Why would you want to do that? What are you hoping to gain?

What I try to achieve is to have high throughput on the client-side without delays.

If you want high throughput you should look at this part of the docs. The most important tip for optimising throughput is to use bulk requests as lots of single index or update requests limits performance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.