Autocomplete with Atlas Search

Learn how to enhance user experience by adding the autocomplete functionality to Atlas Search indexes. As one of the most common features of a search platform, autocomplete is easy to include in any application using Atlas Search.

Autocomplete with Atlas Search

Unit Overview

In this unit, you’ll learn the basics of using the Atlas Search autocomplete functionality. First, we'll explore how autocomplete and tokenization work together, giving you a conceptual foundation in how autocomplete works under the hood. Then, you'll learn how to create indexes that have the autocomplete field type and use the autocomplete operator in queries. Finally, you'll learn how to tune a search index to tailor your results, such as by boosting the score of exact matches and returning results that begin with the query phrase.

Prerequisites

Lessons in This Unit

  • Lesson 1 – Tokenization for Autocomplete
  • Lesson 2 – Create a Search Index Using the Autocomplete Field Type
  • Lesson 3 – Use the Autocomplete Operator in an Atlas Search Query
  • Lesson 4 – Tune the Search Index to Return Exact Matches First
  • Lesson 5 – Tune the Search Index to Return Results that Start with the Query Phrase
  • 01.
    Lesson 1: Tokenization for Autocomplete
    • Learn
    • Practice
  • 02.
    Lesson 2: Create a Search Index Using the Autocomplete Field Type
    • Learn
    • Practice
  • 03.
    Lesson 3: Use the Autocomplete Operator in an Atlas Search Query
    • Learn
    • Practice
  • 04.
    Lesson 4: Tune the Search Index to Return Exact Matches First
    • Learn
    • Practice
  • 05.
    Lesson 5: Tune the Search Index to Return Results that Start with the Query Phrase
    • Learn
    • Practice
  • 06.
    Conclusion
    • Learn
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.

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, Sarah was a Curriculum Engineer on the Coding team at Trilogy | 2U, where she contributed to Full-Stack and Advanced Front-End courses. Sarah has a MAT degree from Columbia University Teachers College and studied Software Engineering at Flatiron School in Chicago, IL.

Vick Mena | Director, Curriculum

Vick Mena | Director, Curriculum

My name is Vick and I've been in the wild for over 25 years. I grew up at IBM working on the BIOS for the IBM eServer line in Austin, TX before moving to Wall St. I've worked on all phases of software development from low-level to middleware to UI but feel most comfortable in the middle. I also drank the devops kool-aid having moved a product line to AWS while at Dow Jones & Co with the help of an amazing team. I then pivoted into the secure space and worked on software/hardware reverse engineering. I always thought I'd eventually teach and this role lets me leverage all of my experience to lead this motley crew of passionate educators.

John McCambridge | University Curriculum Engineer

John McCambridge | University 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.