Is there any way to query results on Loopback+MongoDB with Diacritic-Case-Insensitive options?
For example, If I want to search for the query olimpic
, and the database contains words like:
Olímpic
olimpic
Olimpic
Then, all of the above should be returned as results. I have tried with multiple queries listed below and other combinations, but nothing has worked so far.
{"where":{"name.text":{"like":"olimpic","options":"i"}}}
{"where":{"name.text":{"like":"/^olimpic$/i","options":"i"}}}
{"where":{"name.text":{"like":"/.*olimpic.*/i"}}}
{"where":{"name.text":{"regexp":"/.*olimpic.*/i"}}}
Any idea?
Thanks in advance!