I\'m trying to retrieve specific data from just the currently logged in user. My data in my database looks like this:
{ "rules": { "tbl_name": { ".indexOn": ["field_name1", "field_name2"] }, ".read": true, ".write": true } }
You can apply indexOn on any field. Add this json in rules security and rules tab. Hope this works for you. :)