Error in string array filter that has spaces between words

I am trying to query in an array field. When I put a word without spaces it works but when I put a name with space it gives error.

It Works - .setFilters(“cidade:São”)
Does not Works(error) - .setFilters(“cidade:São Paulo”)
ERRO ALGOLIA: filters: Unexpected token string(Paulo) expected end of filter

How do I resolve this?

My field:
“cidade”: [
“São Paulo”,

Hi there,

It should work if if you use quotes around the filter value. It should look something like this:

setFilters('cidade: "São Paulo"')

You can learn more about this in the docs:

I hope this helps!

Kind regards,

Thanks for the help, buddy.