From the course: MongoDB Node.js Developer Associate Cert Prep

Unlock this course with a free trial

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

Creating a search index with static field mapping

Creating a search index with static field mapping

From the course: MongoDB Node.js Developer Associate Cert Prep

Creating a search index with static field mapping

- Hi there. In this video you will learn how to use static mapping for Atlas Search. The default field mapping of Atlas Search index is dynamic mapping, indexing all of the fields which makes it simple to get started. However, if we have data with a lot of fields, only some of which an end user of an application might actually care about, we can show relevant results by statically mapping certain fields. This type of search index is called static indexing because the fields that are being queried against are always the same. They're static. Static indexing on specific fields makes the search quick and efficient by minimizing the number of fields to be indexed. Let's jump right into our Atlas Search index. First, we navigate to the Search tab here and create a search index by clicking here. We will use the Visual Editor for a guided experience and ensure that we are creating a search index for the bird's collection…

Contents