title: Full-text search in mongodb in russian
body: <p>I'm trying to use full text search in mongodb:</p>
  
  <pre><code>&gt; db.collection.insert({"text" : "Первый второй третий"})
  &gt; db.collection.insert({"text" : "первый Второй третий"})
  &gt; db.collection.insert({"text" : "первый второй Третий"})
  &gt; db.collection.ensureIndex({"text" : "text"}, {"default_language" : "russian"})
  </code></pre>
  
  <p>Sentences differ only in letter case.</p>
  
  <pre><code>&gt; db.collection.runCommand("text" , {search : "первый"})
  {
          "queryDebugString" : "перв||||||",
          "language" : "russian",
          "results" : [
                  {
                          "score" : 0.6666666666666666,
                          "obj" : {
                                  "_id" : ObjectId("516acfe2dbfd90a837e09131"),
                                  "text" : "первый Второй третий"
                          }
                  },
                  {
                          "score" : 0.6666666666666666,
                          "obj" : {
                                  "_id" : ObjectId("516acfe8dbfd90a837e09132"),
                                  "text" : "первый второй Третий"
                          }
                  }
          ],
          "stats" : {
                  "nscanned" : 2,
                  "nscannedObjects" : 0,
                  "n" : 2,
                  "nfound" : 2,
                  "timeMicros" : 86
          },
          "ok" : 1
  }
  </code></pre>
  
  <p>The result consists only of two entries but it should be three. In English everything is good.</p>