Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /

How to Index Fields for Vector Search

Note

The procedure includes index definition examples for the collections in the sample datasets. If you load the sample data on your cluster and create the example MongoDB Vector Search indexes for the collections, you can run the sample $vectorSearch queries against these collections. To learn more about the sample queries that you can run, see $vectorSearch Examples.

You need the Project Search Index Editor or higher role to view MongoDB Vector Search indexes.

After you edit an index, MongoDB Vector Search rebuilds it. While the index rebuilds, you can continue to run MongoDB Vector Search queries by using the old index definition. When the index finishes rebuilding, the old index is automatically replaced. This process is similar to MongoDB Search indexes. To learn more, see index-create-and-update.

You must have the Project Search Index Editor or higher role to delete a MongoDB Vector Search index.

Back

Architecture

Earn a Skill Badge

Master "Vector Search Fundamentals" for free!

Learn more

On this page