如何在类似论坛的网站上实现搜索功能
我希望获得您关于实施以下应用程序的最佳方法的建议。
我们将使用的架构如下:
- ASP .Net MVC 2
- Entity Framework 4
- SQL Server 2008
该应用程序是一个类似论坛的网站,其中包含静态内容和由网站注册用户添加的内容。
要求如下:
- 网站需要可本地化语言(易于做到)
- 用户应该能够搜索静态内容以及其他人用其首选语言输入的内容。我想对于所有“西方”语言来说这都不是问题,但我正在考虑俄语、汉语、希伯来语或任何不使用西方字母的语言。
所以我的问题是:
- 存储用户条目的最佳方式是什么?应该使用 SQL Server 数据库还是其他类型的存储库来使文本搜索更加有效和高效?
- 完成这项工作的最佳工具是什么?我知道 SQL Server 有某种文本搜索功能,或者我应该使用另一种吗?
- 当您输入新问题的标题时,您会得到一些建议,那么实现 SO 功能的最佳方法是什么? (我真的很喜欢):)
您提出的所有建议都将不胜感激。
I would like your advice for the best way to implement the following application.
The architecture that we're going to be using is the following:
- ASP .Net MVC 2
- Entity Framework 4
- SQL Server 2008
The application is a forum-like kind of site in which there will be static content and content added by the site's registered users.
The requirements would be the following:
- The site needs to be language localizable (easy to do)
- The users should be able to search for content in both the static one and what others have entered in their preferred language. I guess that for all "western" languages it would not be a problem, but I'm thinking about languages like Russian, Chinese, Hebrew, or any that doesn't use the western alphabet.
So my questions would be:
- What would be the best way to store the users' entries? Should it be the SQL Server database or other kind of repository to make the text search more effective and efficient?
- What would be the best tool to use for this job? I know SQL Server has some kind of Text Search or, should I use another one?
- What would be the best way to implement SO's functionality that when you entered your new question's Title you get a few suggestions? (I really love that) :)
Everything and anything that you can suggest will be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论