Skip to content

Instantly share code, notes, and snippets.

@lukas-vlcek
Created June 12, 2013 12:32
Show Gist options
  • Save lukas-vlcek/5764844 to your computer and use it in GitHub Desktop.
Save lukas-vlcek/5764844 to your computer and use it in GitHub Desktop.
Or is this the correct way of setting compound format?
Settings settings = settingsBuilder()
.put("gateway.type", "local")
.put("index.number_of_shards", 1)
.put("index.compound_format", true) // ##### Here ?
.build();
Node node = NodeBuilder.nodeBuilder()
.settings(settings)
.local(true)
.node();
Client client = node.client();
client.admin().indices()
.prepareCreate("myindex")
.setSettings(settingsBuilder().put("index.compound_format", true).build()) // ##### Trying also here
.execute().actionGet();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment