RequestOptions

edit

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.