This version of the documentation is archived and no longer supported. To upgrade your 8.2 deployment, see the MongoDB 8.3 upgrade procedures.
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:
Index Definitions to learn more about creating and managing MongoDB Search indexes.
MongoDB Search Aggregation Pipeline Stages to learn more about the
$searchMetapipeline stage syntax, usage, and results.
Important
The $searchMeta aggregation pipeline stage is available for
collections hosted on:
MongoDB Enterprise deployments running version 8.2 or later with the Kubernetes Operator.
MongoDB Community deployments running version 8.2 or later.
To learn more, see MongoDB Search.