def TEXT_SEARCH(text):
return {'<STR_LIT>': {'<STR_LIT>': text}}<EOL>
The $text operator assigns a score to each document that contains the search term in the indexed fields.
The score represents the relevance of a document to a given text search query.
See https://docs.mongodb.com/v3.4/tutorial/text-search-in-aggregation/
for more details
:param text: The text that you like to match-score
:return: Aggregation operator