IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
RequestOptions
editRequestOptions
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.