Unable to Find the Package PreBuiltTransportClient in 5.1.1 version


(Tt Narendran) #1

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.


(David Pilato) #2

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


(system) #3

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