title: python elasticsearch client set mappings during create index
body: <p>I can set mappings of index being created in curl command like this:</p>
  
  <pre><code>{  
    "mappings":{  
      "logs_june":{  
        "_timestamp":{  
          "enabled":"true"
        },
        "properties":{  
          "logdate":{  
            "type":"date",
            "format":"dd/MM/yyy HH:mm:ss"
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>But I need to create that index with elasticsearch client in python and set mappings.. what is the way ? I tried somethings below but not work:</p>
  
  <pre><code>self.elastic_con = Elasticsearch([host], verify_certs=True)
  self.elastic_con.indices.create(index="accesslog", ignore=400)
  params = "{\"mappings\":{\"logs_june\":{\"_timestamp\": {\"enabled\": \"true\"},\"properties\":{\"logdate\":{\"type\":\"date\",\"format\":\"dd/MM/yyy HH:mm:ss\"}}}}}"
  self.elastic_con.indices.put_mapping(index="accesslog",body=params)
  </code></pre>