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

Wrong diacritics for polish letter ł

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.9
    • Component/s: None
    • Labels:
      None
    • ALL
    • Hide
      db.t1.insert([{title: "Łódź"}])
      db.getCollection("t1").createIndex({ "title": "text" }, { "name": "tq", collation:{locale:'simple'} })
      db.t1.find( {$text: { $search: 'lodz' }} ) // no results
      db.t2.find( {$text: { $search: 'łodz' }} ) // 1 hit
      
      Show
      db.t1.insert([{title: "Łódź"}]) db.getCollection("t1").createIndex({ "title": "text" }, { "name": "tq", collation:{locale:'simple'} }) db.t1.find( {$text: { $search: 'lodz' }} ) // no results db.t2.find( {$text: { $search: 'łodz' }} ) // 1 hit
    • Query 2017-10-23, Query 2017-11-13

      According to docs https://docs.mongodb.com/manual/core/index-text/ text index
      should expand non-latin characters properly. One exception I found is polish letter Ł, ł which does not expand to letter L.

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            vikingpl Mateo
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: