title: Elasticsearch return all documents of a given type
body: <p>I have been searching for a solution to this question for a few days. Use case is to simply see the documents of a particular type only. Usually after googling for a long time I end up with some search queries with wildcards. I have gone through many SO Posts like <a href="https://stackoverflow.com/questions/10874360/elasticsearch-returning-all-documents">this</a>, <a href="https://stackoverflow.com/questions/8829468/elasticsearch-query-to-return-all-records">this</a> and <a href="https://www.elastic.co/guide/en/elasticsearch/reference/5.1/query-dsl-type-query.html" rel="noreferrer">elastic documentation</a> also. I tried below urls but without any luck.</p>
  
  <pre><code>curl -XGET 'localhost:9200/analytics/test/_search' -d '
  {
  
     "query" : {
     "match_all" : {}
      }
  }'
  
  curl -XGET 'localhost:9200/analytics/test/_search' -d '
  {
      "query": {
          "type":{
              "value": "test"
              }
      }
  }'
  </code></pre>
  
  <p>Is there something like a wild card search on a document type to return all documents of that specific doc_type? </p>