0
votes

I startup elasticsearch via XML configuration like this:

<elasticsearch:node-client id="client" local="true"/>

Now I need more control on configuration e.g. setting the index files location. How can I achieve this? Can I pass parameter somehow or do I need to specify a config-file location using environment property -Des.config=?

1

1 Answers

0
votes

You need to use @Setting(settingPath = "elasticsearch.properties") in your config class and inside the file set the path.data property.

Check my answer here