WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
RequestOptions
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
RequestOptions
editAll 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.