Support custom locales in case-insensitive queries

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

      [c] doesn't support Russian language

      func searchAutocompleteEntriesWithSubstring(substring: String) {
          suggestions.removeAll()
      
          let realmSuggestions = realm.objects(Cities).filter("ru BEGINSWITH[c] '\(substring)'")
          for suggestion in realmSuggestions {
              suggestions.append(suggestion.valueForKey("ru") as! String)
          }
          suggestionsTableView.reloadData()
      }
      

      In English it works as expected

      func searchAutocompleteEntriesWithSubstring(substring: String) {
          suggestions.removeAll()
      
          let realmSuggestions = realm.objects(Cities).filter("en BEGINSWITH[c] '\(substring)'")
          for suggestion in realmSuggestions {
              suggestions.append(suggestion.valueForKey("en") as! String)
          }
          suggestionsTableView.reloadData()
      }
      

      Please fix.

      Realm 0.96.2 / Xcode 7.1 / OSX 10.11.1
      You can find me on Facebook for further assistance.

            Assignee:
            Unassigned
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: