From the course: MongoDB Python Developer Associate Cert Prep

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Creating a search index with dynamic field mapping

Creating a search index with dynamic field mapping

From the course: MongoDB Python Developer Associate Cert Prep

Creating a search index with dynamic field mapping

- Hello. In this video we'll use MongoDB Atlas to create a search index on a collection, set the options to use dynamic mapping, and test our search index by making a query. Search indexes are used to define how a relevance-based search should be performed. It is not the same thing as a database index, which is used to make database queries more efficient. There are just a few steps to set up an Atlas search index, and we can do that directly in MongoDB Atlas. A search index with dynamic mapping means that when the search algorithm is run, all fields will be indexed with a few exceptions, booleans, object IDs, and timestamps. This is the default and the fastest way to get search running. In the MongoDB Atlas interface, we can click into the search tab where we will see all of the search indexes that we have in this database. We can create a new search index by clicking on the create search index button. We can click…

Contents