Skip to content

Instantly share code, notes, and snippets.

@lukas-vlcek
Last active December 18, 2015 09:58
Show Gist options
  • Save lukas-vlcek/5764816 to your computer and use it in GitHub Desktop.
Save lukas-vlcek/5764816 to your computer and use it in GitHub Desktop.
Is this correct way to use compound format via Java API?
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")
.execute().actionGet();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment