Connect to elasticsearch through java

while executing the code it is showing the error in this statement....specifiying that source not found and even not going to catch block..

try {
client = new PreBuiltTransportClient(Settings.EMPTY)
.addTransportAddresses(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));
} catch (UnknownHostException e) {

This might be better looked at on the Elasticsearch forum. I'll move your post.

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