elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

UpdateByQueryRequest explanation is a little bit confusing

Open liu-xiao-guo opened this issue 2 years ago • 0 comments

Java API client version

8.2

Java version

JDK 1.8

Elasticsearch Version

Elastic Stack 8.2

Problem description

At the link https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/8.2.2/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.html, it says:

Performs an update on every document in the index without changing the source, for example to pick up a mapping change.

In fact, we can use the request to update source if scripts are used. The description of the class is a confusing to developers.

Thanks

liu-xiao-guo avatar Jun 15 '22 12:06 liu-xiao-guo