elasticsearch-java
elasticsearch-java copied to clipboard
UpdateByQueryRequest explanation is a little bit confusing
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