Paso 1:
Cree un índice de texto
db.sampleCollection.createIndex( { "$**": "text" } )
Paso 2:
Use el índice de texto para buscar la palabra en cuestión
db.sampleCollection.find( { $text: { $search: "wordToSearch" } })
Cree un índice de texto
db.sampleCollection.createIndex( { "$**": "text" } )
Use el índice de texto para buscar la palabra en cuestión
db.sampleCollection.find( { $text: { $search: "wordToSearch" } })