> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# $searchMeta (aggregation stage)

`searchMeta` returns different [types of metadata result](https://www.mongodb.com/docs/search/query/aggregation-stages/searchMeta.md#std-label-fts-metadata-results) documents for MongoDB Search queries on the field or fields in an Atlas collection. The fields must be covered by a [MongoDB Search](https://www.mongodb.com/docs/atlas/reference/atlas-search/index-definitions/) index. See:

- [Index Definitions](https://www.mongodb.com/docs/atlas/reference/atlas-search/index-definitions/) to learn more about creating and managing MongoDB Search indexes.

- [MongoDB Search Aggregation Pipeline Stages](https://www.mongodb.com/docs/atlas/reference/atlas-search/query-syntax/) to learn more about the `$searchMeta` pipeline stage syntax, usage, and results.

**Important:**

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

- [MongoDB Atlas.](https://www.mongodb.com/docs/atlas/)

- [MongoDB Enterprise](https://www.mongodb.com/docs/manual/administration/install-enterprise.md#std-label-install-mdb-enterprise) deployments running version 8.2 or later with the [Kubernetes Operator.](https://www.mongodb.com/docs/kubernetes/current.md#std-label-k8s-operator)

- [MongoDB Community](https://www.mongodb.com/docs/manual/administration/install-community.md#std-label-install-mdb-community-edition) deployments running version 8.2 or later.

To learn more, see [MongoDB Search.](https://www.mongodb.com/docs/atlas/atlas-search/)
