My problem is similar to [1] I have a spring boot appplication where I save some document in elasticsearch. The index is created in a data dir in the current directory each time. I want to change this default path to a given one. How can I do that? A such a simple task takes hours to find it out.
I tried many things:
@Setting(setting="/data/elasticsearch")
- In an elasticseacrh.properties and
application.properties
file:path.data
spring.data.elasticsearch.path.data
Without any luck.