I have got a json file that has the mapping for a type called "session"
which I want to automatically be used for an index called "sessions"
My elasticsearch.yml file is located at /etc/elasticsearch, so as
described in the linked site I have put the session.json at /etc/elasticsearch/config/mappings/sessions/session.json
When I run curl -XPUT 'http://localhost:9200/sessions/' and look at http://localhost:9200/sessions/_mapping however there isn't a mapping
defined for the type "session"
hard to tell without seeing the file you put there. In general I would not
use the mapping functionality via files, but switch to using index
templates. The reason for this, that you do not have to copy your mapping
files over, when you create and fireup a new node, but you only have to add
it your cluster.
if you still think, this is a bug, please create a github issue, so we can
reproduce it completely.
I have got a json file that has the mapping for a type called "session"
which I want to automatically be used for an index called "sessions"
My elasticsearch.yml file is located at /etc/elasticsearch, so as
described in the linked site I have put the session.json at /etc/elasticsearch/config/mappings/sessions/session.json
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.