我是否需要全文搜索,如果需要如何在sql2000上实现全文搜索?
我正在为我的 asp.net mvc 项目使用 Linq2Sql,到目前为止它的效果非常好。 然而,现在我需要实现一个“关键字搜索”,在分布在 10 个连接表(最大深度为 3 级)的约 20 个字段中搜索 x 个关键字。 linq 函数确实很简单,但生成的查询太慢(2 个单词大约 25 秒)。 我实现了一些缓存,但仅仅缓存并不能减少它。 我自己尝试了一个存储过程,并对其进行了轻微的改进,但优化非常有限。
现在我阅读了全文搜索,如果我做对了,这看起来就是我所需要的。 有人能证实这一点吗? 系统需要运行在SQL2000上。 如果我需要 FTS,有人可以帮助我如何设置它吗? 它是SQL2000内置的吗? 我需要其他图书馆/服务吗?
I'm using Linq2Sql for my asp.net mvc project and so far it has worked out just great.
Now however I need to implement a "key word search" that searches for x key words over about 20 fields spread over 10 joined tables that are joined with a maximum depth of 3 levels.
The linq function is really simpel, but the generated query is just too slow (about 25 secs for 2 words). I implemented some caching, but just caching is not gonna cut it.
I tried with a stored procedure myself and improved it really slightly, but the optimalizations were very limited.
Now I read up on full text searching and if I'm getting it right, this looks like what I'm needing. Could anyone cofirm this?
The system needs to run on SQL2000. If FTS is what I'm needing, could anybody help me on how to set it up? Is it built in in SQL2000? Do I need other libraries/services for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅SQL Server 2000 全文搜索部署白皮书,但我只会使用全文搜索我正在搜索具有大文本块的列的位置。
See the SQL Server 2000 Full-Text Search Deployment white paper, but I would only use full text search where I was searching columns with large text blocks.