I was looking for a way to get all the documents of indexed-field through mongodb text-search.
Though I tried approaches of using regular expressions given below but it's not working. Please suggest.
db.docs.find( { $text: { $search: ".*" } } )
I was looking for a way to get all the documents of indexed-field through mongodb text-search.
Though I tried approaches of using regular expressions given below but it's not working. Please suggest.
db.docs.find( { $text: { $search: ".*" } } )