Unable to Find the Package PreBuiltTransportClient in 5.1.1 version

Hi Team

client = new PreBuiltTransportClient(Settings.builder()
            		.put("cluster.name", "testcluster")
            		.put("client.transport.sniff", true)
            		.build());

Am not able to Find the PreBuiltTransportClient in the package of import org.elasticsearch.client.transport.TransportClient;

Please suggest how to import it.

The doc says it: https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_maven_repository.html

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