Related: How to do this in MongoDB db.foo.find() syntax.
Let's suppose I have a model
class Foo(Document):
name = StringField()
And the database state for the collection is:
[{"name":"Jesús"},{"name":"Jesus"}]
I want a query that match both documents, i.e. search, but with diacritics normalized, something like:
Foo.objects.filter(name__icontains="jesus")
Is there a way to do this directly in mongoengine?