Firebase App Search Feature - Query Using String Regex
问题 I am porting an app over from Parse to Firebase and I used to be able to query using matchesRegex and putting the search into "(?i)\(searchBar.text!)" . By doing this, the user could search "p" and the database would return (for example) "person", "People", "pot", etc. I can't seem to find a way to query like this using Firebase that allows a user to search part of a String and Firebase looks for the substring within the database. I am using: databaseReference.child("Schools")