Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26658

Full Text returns wrong results for Turkish

    • Query Integration
    • ALL

      The text index version 3 does not provide correct search result when the word contains "Turkish i" char.

      Create Script
      db.turk.drop()
      db.turk.insert({ _id: "small_dotless", t1 : "quıt" })
      db.turk.insert({ _id: "small_dot", t1 : "quit" })
      db.turk.insert({ _id: "big_dotless", t1 : "QUIT" })
      db.turk.insert({ _id: "big_dot", t1 : "QUİT" })
      
      db.turk.ensureIndex({t1: "text"}, {
          default_language: "turkish",
          name: "TextIndex"
      });
      
      Actual Results
      > db.turk.find({$text: {$search: "quit", $language: "tr", $caseSensitive: false, $diacriticSensitive: false}});
      {"_id" : "big_dot", "t1" : "QUİT"}
      {"_id" : "small_dot", "t1" : "quit"}
      
      Expected Results
      > db.turk.find({$text: {$search: "quit", $language: "tr", $caseSensitive: false, $diacriticSensitive: false}});
      {"_id" : "small_dotless", "t1" : "quıt"}
      {"_id" : "small_dot", "t1" : "quit"}
      {"_id" : "big_dotless", "t1" : "QUIT"}
      {"_id" : "big_dot", "t1" : "QUİT"}
      

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            ogunisik Kemal Ogun Isik
            Votes:
            4 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated: