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
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
-
-
-
-
-
-
-
-
-
-
-
-
-
Using relevance-based search and search indexes2m 55s
-
(Locked)
Creating a search index with dynamic field mapping3m 28s
-
(Locked)
Creating a search index with static field mapping3m 19s
-
(Locked)
Using $search and compound operators5m 11s
-
(Locked)
Grouping search results by using facets4m 25s
-
(Locked)
MongoDB Atlas Search review49s
-
-
-
-