title: MongoDB: How is a Text-Index stored in the metadata?
body: <p>I'm curious how MongoDB stores a Text-Index inside the metadata. I assume it's somehow an array of stopword-filtered and stemmed words, but I can't find any official hints.</p>
  
  <p>To be more clear:</p>
  
  <p>I want to know how they are stored inside the metadata. E.g. how a Text-Index would look like for a document </p>
  
  <pre><code>{"content": "Dogs are man's best friend"}
  </code></pre>
  
  <p>where the field <em>content</em> has a Text-Index. My guess is, that it should be something like this: </p>
  
  <pre><code>{"words": ["dog", "man", "best", "friend"]} 
  </code></pre>
  
  <p>but I found no official statements</p>