如何获取 MS Sql 2008 全文索引中文本块中术语或短语的位置?
可能相关的问题: 如何从 SQL Server 全文索引返回的文本中生成上下文文本摘录?
无论如何,我想知道是否有办法获取命中的位置) 之内索引文档。如果这是不可能的,我想知道是否有任何其他全文搜索技术可能。
提前致谢!
编辑:德普。我刚刚概述了该相关问题的答案的含义。如果这是最好的方法,那么我想这就是最好的方法。有人有更好的建议吗?
Possibly related question: How could I generate a contextual text extract from text returned from a SQL Server Full-Text Index?
At any rate, I'd like to know if there is a way to get the position of the hit(s) within an indexed document. If this isn't possible, I was wondering if it's possible in any other full-text search technologies out there.
Thanks in advance!
EDIT: Derp. I just walked through the implications of the answer to that related question. If that's the best way then I guess it's the best way. Anyone have any better suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后 sys.dm_fts_parser 似乎是最好/唯一的解决方案。不幸的是,它似乎只能处理最大数量的字符,所以它对我来说是在 Lucene.NET 上。
In the end
sys.dm_fts_parser
appears to be the best/only solution to this. Unfortunately it seems to be able to only handle a maximum amount of characters so it's on to Lucene.NET for me.