Search Fundamentals

Learn the fundamentals of MongoDB Search, including lexical search, indexing strategies, and query optimization. Understand how to build efficient, full-text search experiences within MongoDB-powered applications.

Upon completion of the Search Fundamentals skill and assessment, you will earn a Credly Badge that you are able to share with your network.


  Learning Objectives

Understand Lexical Search

Explain how lexical search works in MongoDB.

Implement Efficient Search Indexing Strategies

Create and optimize search indexes using MongoDB Search, use the correct index types and configurations to improve query performance.





Construct and Execute Search Queries

Build, structure, and execute search queries using the $search aggregation pipeline stage, including filters, faceting, and sorting for optimized search results.





Who is this Course Good for?

This skill is designed for developers who want to build powerful, user-friendly search experiences directly on top of MongoDB. If you are responsible for implementing search features in web or mobile applications, such as e-commerce sites, content platforms, or internal tools, and you are frustrated by irrelevant results, empty result sets, or the complexity of managing separate search infrastructure, this Search Fundamentals Skill Badge is for you. It is especially valuable if you already use MongoDB for your primary data store and want to add search without introducing and maintaining an additional search engine. This skill gives you the foundation to design search that helps users quickly find the products, content, or data they care about, improving both engagement and overall application performance.

What to Expect in this Course

In this skill badge, you will learn the fundamentals of MongoDB Search, with a focus on lexical search and how it powers modern search experiences. The skill starts by grounding you in the user problem: when search is slow, inaccurate, or returns no results for content that clearly exists, users quickly abandon the experience. You explore how effective search becomes the bridge between users and the information or products they need, driving higher conversions, deeper content consumption, and better retention. From there, you are introduced to MongoDB Search as a built-in, scalable search solution that reduces the complexity of managing separate search services by integrating directly into your existing MongoDB workflows.

You then dive into how MongoDB Search works under the hood. You learn that MongoDB Search is a form of lexical search, which analyzes and tokenizes text so user queries can be matched against indexed terms with precision and flexibility. The skill explains search indexes and search queries and how they work together to turn basic MongoDB lookups into rich, relevance-driven search experiences. Using a movie streaming platform called mFlix as a running example, you walk through the process of transforming simple catalog browsing into an intuitive search experience that helps users quickly discover films they will actually want to watch.

Next, you learn how to plan and implement MongoDB Search in a real application. You are introduced to a planning framework that helps you define the search experience from the user’s perspective and then translate it into concrete index and query decisions. You start by building a search index, comparing dynamic versus static mappings and learning how to choose between them based on your data model. You also explore the different data types supported in MongoDB Search and how they affect index behavior. With your index in place, you use the MongoDB aggregation framework to construct search queries that target your search index, allowing you to filter, rank, and return results in ways that match user intent. Finally, you learn how to use facets in MongoDB Search to group and filter search results by categories or attributes, making it easier for users to refine their results and explore your data. Hands-on labs give you practical experience creating indexes and queries in realistic scenarios so you can confidently apply MongoDB search and lexical search fundamentals in your own applications.

Summary of the Course

  • Understand the role of search in user experience and why effective search is critical for engagement and conversions.
  • Explain what MongoDB Search is.
  • Define lexical search and describe how MongoDB Search tokenizes and matches text to deliver relevant results.
  • Design a search experience for a real-world application and translate it into MongoDB Search indexes and queries.
  • Build and configure MongoDB Search indexes, choosing between dynamic and static mappings and appropriate data types.
  • Use the MongoDB aggregation framework to create search queries that leverage MongoDB Search indexes.
  • Implement facets to group and filter search results by category or attribute for more intuitive exploration.
  • Apply MongoDB search fundamentals in hands-on scenarios to build powerful, application-ready search experiences.
Sarah Evans | Senior Curriculum Engineer

Sarah Evans | Senior Curriculum Engineer

Sarah is a Senior Curriculum Engineer on the Curriculum team at MongoDB. Prior to MongoDB, she taught and developed curricula for developer bootcamps. Sarah has a MAT degree from Columbia University Teachers College and studied Software Engineering at Flatiron School in Chicago, IL.

Parker Faucher | University Curriculum Engineer

Parker Faucher | University Curriculum Engineer

Parker is a Curriculum Engineer on the Education team at MongoDB. Prior to joining MongoDB, he helped maintain a world class developer bootcamp that was offered in multiple universities. He is a self taught developer who loves being able to give back to the community that has helped him so much.

Daniel Curran | Senior Software Engineer

Daniel Curran | Senior Software Engineer

Daniel is a Senior Software Engineer at MongoDB. Before joining MongoDB, he worked as an Instructional Designer and Content Developer specialising in technical content for a host of international clients. Daniel's goal is to remove obstacles so learners can feel confident on their journey to become masters of MongoDB.

John McCambridge | Curriculum Engineer

John McCambridge | Curriculum Engineer

John is a Curriculum Engineer on the University team at MongoDB. Before his work as a Curriculum Engineer, he was an instructor and teaching assistant for coding boot camps at UT (Austin), and UCLA. Additionally, he worked as a QA engineer for a startup called Coder and spent five years at Apple Inc. John is a passionate software engineer and educator who enjoys taking complex topics and making them digestible for the community.