title: How to print out the inverted index created by elasticsearch?
body: <p>If I wanted to get all the tokens of the index that elasticsearch creates (I'm using the <a href="https://github.com/elasticsearch/elasticsearch-rails/tree/master/elasticsearch-model" rel="noreferrer">rails elasticsearch gem</a>), how would I go about doing that?  Doing something like this only gets a particular set of tokens for a search term:</p>
  
  <pre><code>curl -XGET 'http://localhost:9200/development_test/_analyze?text=John Smith'
  </code></pre>