3

I want to query firebase database with name contains the search text, In Android. My database structure is shown in image.

enter image description here

I want to query first name and last name and get limited records in result.

Rahul Sonone
  • 2,685
  • 1
  • 27
  • 38
  • Firebase queries can only order/filter by a single property. See http://stackoverflow.com/questions/26700924/query-based-on-multiple-where-clauses-in-firebase – Frank van Puffelen Sep 19 '16 at 19:09

1 Answers1

0

One way that you can get around this problem is to concatenate first name and last name into a new couple. Something like this: First_Last_Name: "Rahul_Rajesh". Just be noticed that this way causes redundancy and you should avoid it unless you REALLY need it.

user1021110
  • 213
  • 1
  • 6
  • 13