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

Support Turkish rules for case folding in $regex

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Text Search
    • Labels:
      None
    • Query Optimization

      Original summary

      Case Sensitivity Mistake – i-İ

      Original Description

      Example data:

      { "_id" : ObjectId("562395d2f4ac61190f8b463a"), "category_name" : "İçme Suları ve Kaynak Suları", "category_name_en" : "Water - Bottled & Bulk" }

      db.categories.find({category_name:{ $regex: 'İçme', $options: 'i'}})
      One result found. it is works well

      However

      When i swap capital İ with small i,i received no result.

      db.categories.find({category_name:{ $regex: 'içme', $options: 'i'}})
      no result.

      The problem might be because of incompability of turkish characters .

      King Regards ,

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            admin@yellow.com.tr Engin Kartal
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: