Transport address from elasticsearch.yml config

Hi Team,

Have a little confusion in elasticsearch.yml to hold transport addresses.

In the above post Kimchy commented we cant provide addresses in yml file.

//settings contain only
    client = new PreBuiltTransportClient(settings)
    			.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));

Now, if above code is migrated to cluster where Elasticsearch exists on another server.
How do I add this transport address in external yml, so that my code would know.
Can we? Cannot?

Pls Help

Thank you,

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