title: Add a field in ElasticSearch using python with boolean datatype?
body: <p>How do add a new field of a particular datatype(boolean) in Elasticsearch using python.
  Is this query correct?</p>
  
  <pre><code>es.update(index='my_index', doc_type='my_doctype', id='id_of_doc', body={"doc": {"new_field":"boolean_value"},"type":"boolean"})
  </code></pre>