Search Firebase for several fields

Asked

Viewed 130 times

0

I can search the searchview by taking the data from Firebase only by the item nameOrganization as I do to search for any field at the same time. Ex: I can search Sao Paulo, Machines, SENAI, etc and always appear the same recyclerview item.

 Query Q = organizacao.orderByChild("nomeOrganizacao").
 startAt(newText).endAt(newText + "\uf8ff");

inserir a descrição da imagem aqui

  • Unfortunately Firebase doesn’t yet have a way to do this.

  • Then I will only be able to search with Firebase for only 1 field and also only for the first letter of the word?

  • 1

    Yes. The only way to perform complex searches in Firebase is by using other services such as Algolia or Elasticsearch... They even created this library to facilitate this.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.