SQL 2008 全文搜索词邻近度
我一直在 MSDN 和其他地方阅读 CONTAINS、FREETEXT、CONTAINSTABLE 等的全文帮助文件,但我无法找到我正在寻找的解决方案。
我希望能够使用以下条件进行查询:
示例值:“敏捷的棕色狐狸跳过了懒狗。”
Select * from MyText where CONTAINS(column, 'brown near lazy').
我希望能够返回单词“brown”与“lazy”的距离在 n 个单词之内的结果,例如,“brown”与“lazy”的距离在 5 个单词之内。
这是否可以通过全文搜索实现,如果可以,有人可以提供一个例子吗?
谢谢
I have been reading the Full Text help files for CONTAINS, FREETEXT, CONTAINSTABLE and so forth on MSDN and elsewhere, but I am not able to find the solution I am looking for.
I would like to be able to query with the following criteria:
Example value: "The quick brown fox jumped over the lazy dogs."
Select * from MyText where CONTAINS(column, 'brown near lazy').
I want to be able to return results where the word brown is within an n number of words from lazy, so for example, brown is within 5 words of lazy.
Is this even possible with the full text search, and if so, can someone provide an example?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基于这篇文章 我想说这是不可能的。
摘抄:
Based on this post i'd say it can't be done.
Excerpt: