I'm having trouble setting up my config mapping as explained here. It works fine when I test it on my host machine, but when trying to apply it to my Elasticsearch container (running this base image), there is no effect. I think that I am placing the mapping file in the wrong directory in my container.
Here is what I have done:
In /usr/share/elasticsearch/config add directories /mappings/test
Create mapping JSON file for type "item" and place in /usr/share/elasticsearch/config/mappings/test
I'm pretty sure I'm putting my mapping file in the wrong directory. I've also tried creating the mappings directory in /etc/elasticsearch to no avail. How can I fix this?
I'm having trouble setting up my config mapping as explained here. It works fine when I test it on my host machine, but when trying to apply it to my Elasticsearch container (running this base image), there is no effect. I think that I am placing the mapping file in the wrong directory in my container.
Here is what I have done:
/usr/share/elasticsearch/config
add directories/mappings/test
/usr/share/elasticsearch/config/mappings/test
After doing this, inspecting the index "test" shows that it is still using the default mappings.
I'm pretty sure I'm putting my mapping file in the wrong directory. I've also tried creating the mappings directory in
/etc/elasticsearch
to no avail. How can I fix this?