title: Elastic Search - Count of items for specific criteria - Curl
body: <p>Curl command to get count of items for specific criteria.</p>
  
  <p>Something like given below.</p>
  
  <pre><code> curl -XGET -k 'https://localhost:9200/myelastic/_search?pretty' -d '
     {
        "query": { "match": { "status": "Disconnected" } },
        "size": 1000
     }'
  </code></pre>
  
  <p>Is it possible to limit the output to only specific fields and not everything which comes back like score, hits and the entire payload</p>
  
  <p>Just found using _source[] one can limit the fields returned. Still looking for suppressing _index, _score from output for easy processing</p>