Building an Autocomplete Form Element with Atlas Search and JavaScript

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 42

  • @rickyu1978
    @rickyu1978 3 года назад +1

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

  • @anthonygayflor1193
    @anthonygayflor1193 3 года назад +3

    Awesome tutorial. Really cleared things up for me.

    • @MongoDB
      @MongoDB  3 года назад

      Glad to hear it! Thanks

    • @moseswatson3407
      @moseswatson3407 3 года назад

      I guess im randomly asking but does any of you know of a trick to get back into an instagram account??
      I was dumb forgot my password. I love any assistance you can give me.

    • @edisondean6635
      @edisondean6635 3 года назад

      @Moses Watson Instablaster :)

    • @moseswatson3407
      @moseswatson3407 3 года назад

      @Edison Dean Thanks for your reply. I got to the site thru google and im waiting for the hacking stuff atm.
      I see it takes quite some time so I will reply here later with my results.

    • @moseswatson3407
      @moseswatson3407 3 года назад

      @Edison Dean it worked and I actually got access to my account again. Im so happy:D
      Thanks so much you saved my account!

  • @FunAnimeCreator
    @FunAnimeCreator 2 года назад

    Thankyou very much sir ❤❤

  • @soniatp9330
    @soniatp9330 4 года назад +3

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

  • @daniellakshan
    @daniellakshan 4 года назад +4

    cool, loved it

  • @GjorgjiPetrovski-c9i
    @GjorgjiPetrovski-c9i 3 года назад

    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?

  • @linuxier1986
    @linuxier1986 4 года назад

    Good example will try out

  • @oanagiorgi4178
    @oanagiorgi4178 3 года назад

    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 :)

  • @ivankraev4264
    @ivankraev4264 Год назад

    Is there a way to create search index programatically ?

  • @anaskhalilkhalilahmed3586
    @anaskhalilkhalilahmed3586 2 года назад

    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?

  • @gotnochannel
    @gotnochannel 3 года назад +3

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

    • @RichardFAllen6
      @RichardFAllen6 3 года назад +1

      Brian, Did you ever get this working with mongoose? If so, would you share your solution?

    • @ujjwalbhatta1752
      @ujjwalbhatta1752 2 года назад

      Yeahh you can

  • @basavarajchannur2788
    @basavarajchannur2788 3 года назад

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

    • @sudhanvahebbar1709
      @sudhanvahebbar1709 3 года назад +1

      change bodyParser to Express.Its deprecated
      server.use(express.json());
      server.use(express.urlencoded({ extended: true }));

  • @gabrielaacosta3172
    @gabrielaacosta3172 4 года назад

    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

  • @Frawkesish
    @Frawkesish Год назад

    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..

  • @wenlongshao4799
    @wenlongshao4799 4 года назад +2

    Good stuff. Does this work with mongoose?

    • @dijiflex
      @dijiflex 4 года назад +1

      Yes it works with mongoose very well. I just did it

    • @RichardFAllen6
      @RichardFAllen6 3 года назад

      @@dijiflex Hi Felix, Please share your mongoose solution. I am having a hard time getting it to work for me.

  • @mikmikmikdota
    @mikmikmikdota 4 года назад +1

    awesome! can you do example of chat application?

    • @MongoDB
      @MongoDB  3 года назад +1

      Would something like this work?:
      developer.mongodb.com/how-to/real-time-chat-phaser-game-mongodb-socketio/

  • @matthewwu4689
    @matthewwu4689 3 года назад

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

    • @MongoDB
      @MongoDB  3 года назад

      Yes, it should work great :-)

  • @dijiflex
    @dijiflex 2 года назад

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

  • @rangabharath4253
    @rangabharath4253 4 года назад

    awesome

  • @dijiflex
    @dijiflex 4 года назад

    Can i do this using compass on my local machine?

    • @MongoDB
      @MongoDB  3 года назад

      You can run Atlas Search queries from Compass on your local machine, but you'll need to be using MongoDB Atlas, not a locally installed version of MongoDB.

  • @linuxstudy1
    @linuxstudy1 3 года назад

    does this work with local mongodb ? or mongodb compass ?

    • @MongoDB
      @MongoDB  3 года назад

      For Atlas Search you're going to want to be using MongoDB Atlas, not a local instance.

    • @linuxstudy1
      @linuxstudy1 3 года назад

      ​@@MongoDB yes But mongoDB atlas is forbidden in my country I have to use some special server here. So they have own servers to run mongoDB.
      but thanks anyway.

  • @dressr3270
    @dressr3270 3 года назад

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

  • @brownsugar2549
    @brownsugar2549 3 года назад +1

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

    • @MongoDB
      @MongoDB  3 года назад +1

      Certainly. As you get things set up feel free to stop by our community forum to talk best practices and if you need any assistance. community.mongodb.com

  • @santhoshm9592
    @santhoshm9592 3 года назад

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

    • @MongoDB
      @MongoDB  3 года назад +1

      You can find a writeup with the source code here:
      developer.mongodb.com/how-to/building-autocomplete-form-element-atlas-search-javascript/