Building an Autocomplete Form Element with Atlas Search and JavaScript

preview_player
Показать описание
Learn how to use the `autocomplete` operator in MongoDB Atlas Search to build a frontend form element that suggests data to the user.

Connect with MongoDB:
Рекомендации по теме
Комментарии
Автор

Hello sir, when I open the browser, it shows like this : {"message":"Cannot read property 'aggregate' of undefined"}. why?

soniatp
Автор

body parser is now part of express, no need to import it separately afaik.. great node js tutorial.

rickyu
Автор

Awesome tutorial. Really cleared things up for me.

anthonygayflor
Автор

This tutorial helped me and taught me a lot. I made my own application with multiple collections. So my question is how do I use autocomplete to display data from multiple collections, not just one collection. What should I do?

GjorgjiPetrovski-ci
Автор

Is there a way to create search index programatically ?

ivankraev
Автор

Hi! How am I supposed to display data from the collection if I have string fields(like "recipe_type": String)? Shall I still use append, but without forEach? Thanks, very useful tutorial :)

oanagiorgi
Автор

Sir what is the limit to set on results returned by the query, suppose if a query matches with 100 documents or more than 100 then it will be worse for the user and also for the page. can we make it like google based searches which only show only 10 results on the basis of high relevance scores based?

anaskhalilkhalilahmed
Автор

this has been great but I can;'t seem to get the data I need lol just keeps returning an empty array.. maybe it's the format of my DB..

Frawkesish
Автор

Is it possible to make this work with a mongoose connection? 🤔

gotnochannel
Автор

hi, can you help me? i have a colection activity:{_id:"0", title:"tenis", categories:["0", "1"]},
category :{_id:0, title:"fun"} {id:1, title:"sport"} . well, i want to search for activities in the tennis category, is it possible? where the category is a relation within the activity

gabrielaacosta
Автор

Good stuff. Does this work with mongoose?

wenlongshao
Автор

Can the path Field container an array eg. path: ["name", "email"]

dijiflex
Автор

awesome! can you do example of chat application?

michaelangelosilva
Автор

Will this work for a database that is constantly storing new values into it?

matthewwu
Автор

Can i do this using compass on my local machine?

dijiflex
Автор

does this work with local mongodb ? or mongodb compass ?

linuxstudy
Автор

at 9:29 its showing a stike(line on) Bodyparser

basavarajchannur
Автор

How performant is this? Let's say you have over 10.000 users calling the backend on every search.

dressr
Автор

Is this powerful for 100K documents. With 17 fields of blog posts?

brownsugar
Автор

sir can you kindly upload the source code. It will be useful to us

santhoshm