I have successfully implemented a search feature in my App.
This is the query i use for searching users by username:
Query query = firebaseDatabase.getReference().child("users").orderByChild("username").startAt(s).endAt(s + "~");
Where '~' is the last character in the ASCII alphabet.
In this way I'm able to search users in a case sensitive way.
Is there a way to make a search not case sensitive?