$$SEARCH_META is an aggregation variable containing metadata from a preceding Atlas Search $search stage. The matching documents flow through the pipeline separately; supported stages after $search can use the variable to inspect the search metadata, including total document counts. section 11.5.1
Inspect a fuzzy search
Search business_name for the misspelled query “smok skop,” allowing one typo while requiring the first three letters to match. A following $facet stage can show five matching inspection documents and expose search metadata through $$SEARCH_META. section 11.5.1
