Docs Menu


The $search aggregation pipeline stage has the following operators:

Performs a search-as-you-type query from an incomplete input string.
Combines other operators into a single query.
Works in conjunction with the boolean and objectId data types.
Tests for the presence of a specified field.
Queries for values with specified geo shapes.
Queries for points within specified geographic shapes.
Queries for values near a specified number, date, or geo point.
Searches documents for terms in an order similar to the query.
Supports querying a combination of indexed fields and values.
Queries for values within a specific numeric or date range.
Interprets the query field as a regular expression.
Deprecated. Performs analyzed search. Use text operator instead.
Specifies relative positional requirements for query predicates within specified regions of a text field.
Deprecated. Performs unanalyzed search.
Performs textual analyzed search.
Supports special characters in the query string that can match any character.
Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.


  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.