Java RestHighLevelClient UpdateByQuery with Task Response

The updateByQuery API of elasticsearch has the possibility to get a task response if the parameter wait_for_completion is set to false (https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docs-update-by-query.html#docs-update-by-query-task-api).

But the Java RestHighLevelClient doesn't seem to support this feature. I search for something like described here for reindex but for updateByQuery (https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.8/java-rest-high-document-reindex.html#java-rest-high-document-reindex-task-submission).

  1. Is there any reason why this is not supported?
  2. What are my possibilities for workarounds? (LowLevelClient?)

This is indeed is missing and has just been added and will be ported to 7.10. See https://github.com/elastic/elasticsearch/pull/58552

1 Like

Nice! Thank you for the super fast answer!

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