title: How to remove specific response body content in Elasticsearch
body: <p>How Remove specific response body field content in Elasticsearch response.</p>
  
  <p>My response body from Elasticsearch is,</p>
  
  <pre><code>{
    "took": 67,
    "timed_out": false,
    "_shards": {
      "total": 331,
      "successful": 331,
      "skipped": 321,
      "failed": 0
    },
    "hits": {
      "total": 5344,
      "max_score": 4.2037153,
      "hits": [
        {
          "_index": "Test-2018.03.22",
          "_type": "Emp",
          "_id": "df4354yy5465645tytryytI",
          "_score": 4.2037153,
          "_source": {
            "time": "2018-03-22T12:46:39.6259805Z",
            "Sample": "Info",
            "Active": "Avaliable",
            "ProcessCheck1": "0",
            "ProgramId2": "0",
          }
        },
        ]
        }
        }
  </code></pre>
  
  <p>Is there a way to remove them so i can have the following structure,</p>
  
  <pre><code>{
  
    "hits": {
      "total": 5344,
      "hits": [
        {
          "_source": {
            "time": "2018-03-22T12:46:39.6259805Z",
            "Sample": "Info",
          }
        },
        ]
        }
        }
  </code></pre>
  
  <p>Thanks for reading.I will appreciate your help!.</p>