title: Bulk update in the elasticsearch
body: <p>I have a requirement to update a nested document (bulk) in the elasticsearch 5.X</p>
  
  <p>Conditions</p>
  
  <ol>
  <li>I will have multiple document with the same groupid.</li>
  <li>I want to update the document's groupname which bares the groupid 244</li>
  <li>I have to update them in bulk.</li>
  </ol>
  
  <p>Eg: <code>{
      "hits": {
          "hits": [{
                  "_index": "myindex",
                  "_id": "1",
                  "_source": {
                      "ticketdesc": [{
                          "groupid": 244,
                          "groupname": "Fire and run"
                      }]
                  }
              },
              {
                  "_index": "myindex",
                  "_id": "2",
                  "_source": {
                      "ticketdesc": [{
                          "groupid": 244,
                          "groupname": "Fire and run"
                      }]
                  }
              },
              {
                  "_index": "myindex",
                  "_id": "3",
                  "_source": {
                      "ticketdesc": [{
                          "groupid": 244,
                          "groupname": "Fire and run"
                      }]
                  }
              },
              {
                  "_index": "myindex",
                  "_id": "4",
                  "_source": {
                      "ticketdesc": [{
                          "groupid": 245,
                          "groupname": "Fire and run"
                      }]
                  }
              }
          ]
      }
  }</code> </p>
  
  <p>Thanks in advance</p>