WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
All APIs in the
RestHighLevelClient accept a
RequestOptions which you can
use to customize the request in ways that won’t change how Elasticsearch
executes the request. For example, this is the place where you’d specify a
NodeSelector to control which node receives the request. See the
low level client documentation
for more examples of customizing the options.