SQL Server:用于全文索引的一个大型持久计算列

发布于 2024-09-02 17:37:50 字数 193 浏览 15 评论 0原文

在我看来,这是最简单、最直接的解决方案,但如果我错了,请纠正我。

与其在表的所有单独列上建立全文索引,不如只生成一个宽计算列并仅针对该列运行全文索引,这不是更好吗?

在我看来,它消除了拥有多个列的所有问题,包括。我无法搜索“x AND y”,因为这不会匹配第 1 列中存在“x”且第 2 列中存在“y”的行。

有任何反驳吗?

It appears to me as the easiest, most straightforward solution, but please correct me if I'm wrong.

Instead of having a fulltext index on all individual columns of a table, isn't it better to just generate one single wide computed column and run the fulltext index against that only?

It appears to me that it gets rid of all the issues of having multiple columns, incl. that I can't search "x AND y" as this will not match a row with "x" present in column 1 and "y" present in column 2.

Any counterarguments?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温折酒 2024-09-09 17:37:50

FTS 提供排名和权重,您不会使用连接列...

FTS provides ranking and weighting, with you wouldn't get using a concatenated column...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文