Created
June 12, 2013 12:32
-
-
Save lukas-vlcek/5764844 to your computer and use it in GitHub Desktop.
Or is this the correct way of setting compound format?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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