Google Like Search and Autocomplete with MongoDB, Nextjs, Nodejs, and Material UI

Published: 29 December 2021
on channel: Jeremy
8,345
162

This is a tutorial on how to implement Google like search into your application. This is often referred to as full text search with SQL databases. This allows the user to search for an item, and have similar items suggested to them. In addition to this, you'll learn how to implement fuzzy searching, which will allow the user to misspell words and get accurate suggestions. The tech stack that I used to do this was MongoDB, Nextjs, Nodejs, and Material UI. However, you can use whatever you like for the frontend and backend technologies. You really only need to use MongoDB to set up the database and search indexes.

Link to the code: https://github.com/JeremyPersing/mong...
Link to Dataset (Too large for Github): https://drive.google.com/file/d/1IMSn...

Documentation and Resources used:
https://docs.atlas.mongodb.com/atlas-...
   • Building an Autocomplete Form Element...  
   • $search vs $regex vs $text: The Best ...  
https://mui.com/components/autocomple...

Timestamps
0:00 - 0:20 Intro
0:21 - 3:24 Creating a database in MongoDB
3:25 - 9:19 Starting on a Nodejs backend
9:20 - 13:00 Creating search indexes with MongoDB
13:01 - 19:00 Finishing backend
19:01 - 23:20 Creating frontend components for first autocomplete method
23:20 - 24:09 First autocomplete demo
24:10 - 25:15 Creating frontend components for second autocomplete method
25:16 - 26:20 Demo and Comparison
26:21 - 27:16 Handling a suggestion being clicked
27:17 - 27:37 Demo
27:38 - 27:48 Outro


Watch video Google Like Search and Autocomplete with MongoDB, Nextjs, Nodejs, and Material UI online, duration hours minute second in high quality that is uploaded to the channel Jeremy 29 December 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 8,345 times and liked it 162 visitors.