title: Mongodb partial matching
body: <p>How to get all documents in mongodb with one levenshtein distance.</p>
  
  <p>I have collection for football teams. </p>
  
  <pre><code>{
      name: 'Real Madrir',
      nicknames: ['Real', 'Madrid', 'Real Madrir' ... ]
  }
  </code></pre>
  
  <p>And user searched <code>Real Madid</code> of <code>Maddrid</code> or something else.</p>
  
  <p>I want to return all documents that contains nicknames with 0 or 1 levenshtein distance to given search string.</p>
  
  <p>I think there is two ways, mongodb full text search or regex. </p>
  
  <p>So can I write such regex or query ?</p>
  
  <p>Thank you.</p>