title: Add additional attributes to an existing document elasticsearch
body: <p>How do I add additional attributes to an existing document in Elasticsearch index.</p>
  
  <pre><code>$ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{
  "user" : "kimchy",
  "post_date" : "2009-11-15T14:12:12",
  "message" : "trying out Elastic Search"
  }'
  </code></pre>
  
  <p>This would create a document in the index. How do I add an attribute to the document?
  Suppose </p>
  
  <pre><code>"new_attribute":"new_value"
  </code></pre>
  
  <p>which would modify the document as</p>
  
  <pre><code>"user" : "kimchy",
  "post_date" : "2009-11-15T14:12:12",
  "message" : "trying out Elastic Search"
  "new_attribute" :"new_value"
  </code></pre>