For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

$searchMeta (aggregation stage)

searchMeta returns different types of metadata result documents for MongoDB Search queries on the field or fields in an Atlas collection. The fields must be covered by a MongoDB Search index. See:

Important

The $searchMeta aggregation pipeline stage is available for collections hosted on:

To learn more, see MongoDB Search.