Docs Menu

Docs HomeMongoDB Manual

$search (aggregation)

$search aggregation pipeline stage performs a full-text search of the field or fields in an Atlas collection. The fields must be covered by an Atlas Search index. See:

Important

The $search aggregation pipeline stage is only available for collections hosted on MongoDB Atlas cluster tiers running MongoDB version 4.2 or later. To learn more, see Atlas Search.

←  $sample (aggregation)$searchMeta (aggregation) →