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

MongoDB Search Quick Start

Get started with MongoDB Search by creating a search index, running a query, and processing the results. Select your deployment type, interface, and language to view the appropriate procedure.

In this section, you create a MongoDB Search index on the sample movies collection.

In this section, you run queries against the indexed collection.

You can use MongoDB Search to run autocomplete and partial queries that return results for partial words. This helps you retrieve results with increasing accuracy as more characters are entered in your application's search field. You must index the fields as the MongoDB Search autocomplete type to use the autocomplete operator.

To get started, see How to Run Autocomplete and Partial Match MongoDB Search Queries.

You can use MongoDB Search to run facet queries that group search results by string, date, or numeric values. You must create an index with a facet definition to use the facet (MongoDB Search Operator) collector.

To get started, see How to Use Facets with MongoDB Search.

Use the MongoDB Search Playground. to try different MongoDB Search features by configuring search indexes and running queries without an Atlas account, cluster, or collection.

To learn more, see MongoDB Search Playground.

To learn more about MongoDB Search, you can take Unit 1 of the Atlas Search Course on MongoDB University. The 2.25 hour unit includes an overview of MongoDB Search and lessons on how to create MongoDB Search indexes, use $search with different operators, and generate search facets.

You can also watch the following videos to learn more about MongoDB Search: