如何使用mongoDB搜索索引?
我目前正在学习使用节点JS,Express JS,MongoDB和Pug构建网站。我跟随 mozilla tutorial 基本原理,现在我想添加一个搜索栏。
我想从MongoDB搜索功能中获利,但是3-4天后,我仍在篮子案中。
谁能解释应该如何完成?该代码完全如教程/示例网站所述。
另外,我真的不明白整个事情是如何工作的,是否可以更轻松地添加功能或“获得”更好的方法?调试器是我从未见过的变量的海洋,对示例的丝毫改动使整个事情都沉没了。我在里面哭。任何帮助或资源都非常受欢迎。
这是指向公共回购的链接(因为它是博客文章的很多代码)。
I am currently learning to build websites using Node JS, Express JS, MongoDB and PUG. I followed the Mozilla tutorial to understand the fundamentals and now I want to add a search bar.
I would like to profit from MongoDB search functionalities, but after 3-4 days, I am still at basket case.
Can anyone explain how it is supposed to be done? The code is exactly as described in the tutorial/example website.
Also, I really don't understand how this whole thing works, are there easier features to add or ways to 'get it' better? The debugger is an ocean of variables as I have never seen, and the slightest alterations to the example makes the whole thing sink. I am crying inside. Any help or resource is very welcomed.
Here is a link to a public repo (since it's a lot of code for a blog post).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论