$text search is not supported aws mongodb

2.6k views Asked by At

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?

1

There are 1 answers

0
tmcallaghan On

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.