Like the first commenter mentioned you will probably need to replace the characters in your search. For example, you could change your search to something like this
{
"$or": [
{"modelo": {"$regex": "(?i)sábado"}},
{"modelo": {"$regex": "(?i)sabado"}}
]
}
If you have control of the data as it is stored in Cloudant it might be easier if you replace the accent characters on the way in. If you need the original value you could add a new field for searching. For example, you go could set modelo
to sábado
and then add another field like modelo_search
and set the value to sabado
. Then whenever you perform your search you use the modelo_search
field and replace the accents in the search string, like so:
{
"modelo_search": {
"$regex": "(?i)sabado"
}
}