Text Search Operators
Views do not support text search.
$text will tokenize the search string using whitespace and most punctuation as delimiters, and perform a logical
OR of all such tokens in the search string.
For example, you could use the following query to find all stores containing any terms from the list “coffee”, “shop”, and “java”:
$meta query operator to obtain and sort by the relevance score of each matching document. For example, to order a list of coffee shops in order of relevance, run the following:
When working with the Aggregation framework, use
$match with a
$text expression to execute a text search query. To sort the results in order of relevance score,use the
$meta aggregation operator in the
$sort stage .
|||The behavior and requirements of the