Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
How to Do Firebase Special Character Sensitive Search?

https://example.com/foods.json?orderBy="title"&startAt="Yoğurt"&endAt="Yoğurt\uf8ff"

With the above link, I can search the data in Firebase Realtime Database Rest Api using startAt, endAt query parameters.

How can I find the results when searching with similar special characters?

For example, yoğurt and yogurt, kızartma and kizartma

I want to get the same result when written both ways.

If this is not possible with Firebase, is it possible with String methods in Javascript or Dart programming language?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There is nothing built into Firebase for performing this type of search, so you will have to do your own work to allow it.

The simplest way is to store a secondary value for each string that you want to search, where you map each character back to a single representative value you want to search on.

A very common mapping is for example to map all text to a single case (uppercase or lowercase) so that searches become case-insensitive. You can do similar for the accented characters, mapping the ğ to g. So by combining these two tricks, Yoğurt becomes yogurt.

Same for the ı you show (and İ), mapping all four I variants in the Turkish alphabet to i.

Doing this for all special characters gives you a single string value (in addition to the user input, which you should also still store) that you can use for searches.

For more on this, I recommend also reading Dan's answer here.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda