1

When I search for 'stone', I want my query to return

{ first: 'Fred', last: 'Flintstone', }

However, the docs suggest I need to search for an exact match only.

usersRef.where("last", "==", "Flintstone")

And will not return a partial match of 'stone'.

Is there a way to get partial string search matches?

Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207

1 Answers1

0

This is not supported by firebase as the link you shared mentioned, probably you want to use some tool like algolia to achieve that use case, and keep it in sync with firestore using cloud functions.

andresmijares
  • 3,658
  • 4
  • 34
  • 40