title: How to query and list all types within an elasticsearch index?
body: <p><strong>Problem:</strong> <em>What is the most correct way to simply query for and list all types within a specific index (and all indices) in elasticsearch?</em></p>
  
  <p>I've been reading through the reference and API but can't seem to find anything obvious.</p>
  
  <p>I can list indices with the command:</p>
  
  <pre><code>$ curl 'localhost:9200/_cat/indices?v'
  </code></pre>
  
  <p>I can get stats (which don't seem to include types) with the command:</p>
  
  <pre><code>$ curl localhost:9200/_stats
  </code></pre>
  
  <p>I'd expect that there'd be a straightforward command as simple as:</p>
  
  <pre><code>$ curl localhost:9200/_types
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$ curl localhost:9200/index_name/_types
  </code></pre>
  
  <p>Thanks for any help you can offer.</p>