title: MongoDB - Difference between index on text field and text index?
body: <p>For a MongoDB field that contains strings (for example, state or province names), what (if any) difference is there between creating an index on a string-type field :</p>
  
  <pre><code>db.ensureIndex( { field: 1 } )
  </code></pre>
  
  <p>and creating a text index on that field:</p>
  
  <pre><code>db.ensureIndex( { field: "text" }
  </code></pre>
  
  <p>Where, in both cases, <code>field</code> is of <code>string</code> type.</p>
  
  <p>I'm looking for a way to do a case-insensitive search on a text field which would contain a single word (maybe more). Being new to Mongo, I'm having trouble distinguishing between using the above two index methods, and even something like a <code>$regex</code> search.</p>