Instant search , facetFilter does not work with tilder.(~)

114 views Asked by At

I'm trying to implement a typesense search with instantsearch, and trying to use facetFilters, and it works very well, the problem is that the name of some items that were sent to typesense are with "tilder" (~), because in Portuguese do Brazil, which is what I'm doing is very common. But whenever I need to filter an element with the "tilder" (~) such as "composição" it doesn't bring any result. How can I include the "tilder" in my searches?

I hope someone can help me solve this problem.

1

There are 1 answers

0
Chuck Meyer On

Algolia performs a series of normalizations on queries that includes removing diacritics like "~":

https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/

You may have to modify some of the normalization settings (like keepDiacriticsOnCharacters) to get the result you are looking for.