IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
RandomSelector
editRandomSelector
editThis selector simply returns a random node, regardless of state. It is generally just for testing.
If you wish to use this selector, you may do so with:
$client = ClientBuilder::create() ->setSelector('\Elasticsearch\ConnectionPool\Selectors\RandomSelector') ->build();
Note that the implementation is specified via a namespace path to the class.