title: How to Update Elastic Search Documents in bulk, using any other key apart "_id"?
body: <p>I am trying to update the Elastic Search But my Key to match is different than "_id".</p>
  
  <p>E.g: </p>
  
  <pre><code>{
  "_op_type": "update",
  "_index": "my_index",
  "_type": "document",
  "_id": str(uuid.uuid4()),
  "doc": record,
  "doc_as_upsert": True
  }
  </code></pre>
  
  <p>Say My ES has 2 documents:</p>
  
  <p>{ "1" : "Name1" }</p>
  
  <p>{"2": "Name2"  } </p>
  
  <p>// Keys are Unique here, But not uniformly distributed i.e why I have used uuid as "_id".</p>
  
  <p>Question: I update to keep the last updated name corresponding to any key.</p>
  
  <p>For: My name updates on time to time Name1, Name2, Name3, Name4 for same "1" Key, I want to keep just the last updated name in "1".</p>