Suppose I have a simple firebase realtime database structure where the key is
username and the value is
userid. Now I want to search
username. It is quite easy if the username matches. but how to get the answer for partial match. To be more clear if i were to write this using SQL it would be something like:
WHERE username LIKE 'abc%'
it will give me all the
userid where the
username starts with
How to write this type of query for firebase? Understand i am using this on a android device and there can be a lot of user.
According to the doc of Java Admin you can do something like this it should also work with Android
For data starting with
The \uf8ff is after most regular characters in Unicode, so the query should matches all values that start with a