title: error in elasticserach while importing single line via json
body: <p>ubuntu@ip-172-31-5-121:~$ curl -XPUT localhost:9200/movies -d'</p>
  <p>{</p>
  <pre><code>    &quot;mapping&quot;: {
  
              &quot;properties&quot;: {
  
                      &quot;year&quot;: {
  
                              &quot;type&quot;: &quot;date&quot;
  
                      }
  
              }
  
      }
  </code></pre>
  <p>}'</p>
  <p>{&quot;error&quot;:{&quot;root_cause&quot;:[{&quot;type&quot;:&quot;parse_exception&quot;,&quot;reason&quot;:&quot;unknown key [mapping] for create index&quot;}],&quot;type&quot;:&quot;parse_exception&quot;,&quot;reason&quot;:&quot;unknown key [mapping] for create index&quot;},&quot;status&quot;:400}</p>