$search o aggregation pipeline stage executa uma full text search do campo ou campos em uma collection do Atlas. Os campos devem ser cobertos por um índice do Atlas Search. Veja:
Index Definitions to learn more about creating and managing Atlas Search indexes.
Atlas Search Aggregation Pipeline Stages to learn more about the
$searchpipeline stage syntax and usage.$search Operadores para saber mais sobre os operadores de aggregation pipeline stages
$search.