RandomSelector

edit

This 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.