Skip to content

Instantly share code, notes, and snippets.

@lobster1234
Created May 6, 2011 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lobster1234/960029 to your computer and use it in GitHub Desktop.
Save lobster1234/960029 to your computer and use it in GitHub Desktop.
Add a cluster name to Elasticsearch Java TransportClient
Settings settings = ImmutableSettings.settingsBuilder().put("cluster.name",your_cluster_name).build();
TransportClient client = new TransportClient(settings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment