title: curl -X POST -d @mapping.json + mapping not created
body: <p>I am learning elasticsearch. I have specified the mapping in 'mapping.json'. Its contents are</p>
  
  <pre><code>{
      "book" : {
           "_index" : {
               "enabled" : true
           },
           "_id" : {
               "index": "not_analyzed",
               "store" : "yes"
           },
          "properties" : {
              "author" : {
                  "type" : "string"
              },
              "characters" : {
                  "type" : "string"
              },
              "copies" : {
                  "type" : "long",
                  "ignore_malformed" : false
              },
              "otitle" : {
                  "type" : "string"
              },
              "tags" : {
                  "type" : "string"
              },
              "title" : {
                  "type" : "string"
              },
              "year" : {
                  "type" : "long",
                  "ignore_malformed" : false,
                  "index" : "analyzed"
              },
              "available" : {
                  "type" : "boolean",
                  "index" : "analyzed"
              }
          }
      }
  }
  </code></pre>
  
  <p>The present mappings are </p>
  
  <pre><code>$ curl -XGET http://localhost:9200/_mapping?pretty
  =&gt; { 
     "development_users" : {
        "user" : {
           "properties" : {
              "email" : {
                 "type" : "string"
              },
              "first_name" : {
                 "type" : "string"
              },
              "id" : {
                 "type" : "string",
                 "index" : "not_analyzed",
                 "omit_norms" : true,
                 "index_options" : "docs",
                 "include_in_all" : false
              },
              "last_name" : {
                 "type" : "string"
              },
              "role" : {
                 "type" : "string"
              }
           }
       }
    }
  }
  </code></pre>
  
  <p>I create mapping for books using the command </p>
  
  <pre><code>$ curl http://localhost:9200/books -X POST -d @mapping.json
  =&gt; {"ok":true,"acknowledged":true}
  </code></pre>
  
  <p>But when list all mappings, i get:</p>
  
  <pre><code>$ curl -XGET http://localhost:9200/_mapping?pretty
  =&gt; { "books" : { },
     "development_users" : {
        "user" : {
           "properties" : {
              "email" : {
                 "type" : "string"
              },
              "first_name" : {
                 "type" : "string"
              },
              "id" : {
                 "type" : "string",
                 "index" : "not_analyzed",
                 "omit_norms" : true,
                 "index_options" : "docs",
                 "include_in_all" : false
              },
              "last_name" : {
                 "type" : "string"
              },
              "role" : {
                 "type" : "string"
              }
           }
        }
     }
  }
  </code></pre>
  
  <p>why isnt the mapping for books getting created as specified in mapping.json file?</p>