dockerfile / elasticsearch

ElasticSearch Dockerfile for trusted automated Docker builds.
http://dockerfile.github.io/#/elasticsearch
MIT License
483 stars 314 forks source link

Can't set config mapping via JSON file #47

Closed jbasrai closed 7 years ago

jbasrai commented 9 years ago

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:

{
  "item" : {
    "properties" : {
      "title" : {
        "type" :    "string",
        "analyzer": "english"
      }
    }
  }
}

After doing this, inspecting the index "test" shows that it is still using the default mappings.

{
  "test" : {
    "mappings" : {
      "item" : {
        "properties" : {
          "title" : {
            "type" : "string"
          }
        }
      }
    }
  }
}

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?