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