Créer un index sur le schéma pour tous les champs (type de texte)
schema.index({'$**': 'text'});
Jaimin Patel
schema.index({'$**': 'text'});