I want to do a text search based on weightage. So used below mongo query
Query:
db.stores.find( { $text: { $search: ""coffee shop"" } } )
This query works for MongoDB but, aws documentDB is not supporting $text search. Is there any alternate way to do a text search in MongoDB which also supports aws documentDB?
An alternate approach is to integrate an external search technilogy like Apache Lucene or Amazon OpenSearch using change streams to populate the search platform and calling it directly to perform text searches.