addPlugin in Elastic 5.2.1?

I'm unable to create a client like this :-

Client client = TransportClient.builder().addPlugin(ReindexPlugin.class)
    .build().addTransportAddress(new InetSocketTransportAddress(
        InetAddress.getByName("127.0.0.1"), 9300));

.builder() method is unavailable, went to github to realize that the entire builder class and builder method are not there in TransportClient.class after 2.4 -> 5.0
Any new way to addPlugin in my cliient?

Commit in question :-

I'd start from here: https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/transport-client.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.