SQL Server 2008重新填充索引“更新”选项

发布于 2024-10-29 17:14:26 字数 389 浏览 2 评论 0原文

我创建了一个名为 EntryCatalog 的目录。我将一个名为 Entry 的表分配给目录,并选择“注释”和“标题”列(均为 nvarchar max),并将“跟踪更改”设置为“自动”。

我没有在填充计划选项中添加任何内容,认为必须有某种方法让它自动填充并进行“自我管理”。因此,在条目表的 FTI 属性中,有一个“操作”复选框。我检查了这一点并选择了“更新”单选按钮(而不是“增量”或“完整”),因为文档说“只要修改基表中的数据,就会更新全文索引”。我认为这就是我想要的...这是否适用于向条目表进行插入时?

也许我从根本上误解了 FTI 的工作原理。我希望我可以设置一个目录来索引该表中的两列,并且当插入新记录时,它们也会自动索引。这可以完成吗?或者您是否必须设置某种调度选项?这真的是重新人口增长吗?

谢谢。

I have created a single catalog named EntryCatalog. I assigned a table named Entry to the catalog and selected Notes and Title columns (both nvarchar max) with Track Changes set to Automatic.

I did not put anything in the Population Schedule options thinking there has to be some way to have it populate automatically and kind of "manage itself." So in the FTI properties for the Entry table there is an Actions checkbox. I checked that and selected the UPDATE radio button (rather than Incremental or Full) because the docs say "The full-text index is updated whenever the data in the base table is modified." I think that's what I want...does this apply to when inserts are made to the Entry table?

Maybe I'm fundamentally misunderstanding how FTI works. I'm hoping I can just set up a catalog to index the 2 columns in this table and when new records are inserted they are indexed as well automatically. Can this be done, or do you HAVE TO have some kind of scheduling option set up? Is that what repopulating really is?

Thank you.

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

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

发布评论

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

评论(1

七色彩虹 2024-11-05 17:14:26

那么,要在 SQL Server 中实现全文索引,您应该执行以下步骤:

  1. 如果需要,创建全文目录。
  2. 创建全文索引。
  3. 如有必要,修改干扰词 (SQL Server 2005) 或停用词 (SQL Server 2008) 列表。
  4. 如果需要,请修改所使用语言的同义词库。

“每当基表中的数据更新时,全文索引就会更新
修改了。”我想这就是我想要的......这适用于什么时候
是否对 Entry 表进行了插入?

答案:是的

我希望我可以设置一个目录来索引此中的两列
表,当插入新记录时,它们也会被索引
自动地。这可以做到吗,或者你必须有某种
调度选项设置了吗?这真的是重新填充吗?

如果我没记错的话,你就不必做这样的事情。事物将由 SQL Server 2008 自动管理。首先,您需要创建全文目录,创建全文目录后,您就可以创建全文索引了。然后,您可以将索引与新目录相关联。然后修改停用词。你完成了。

以下链接将帮助您了解“SQL Server 中的全文索引”的基础知识。

http:// www.simple-talk.com/sql/learn-sql-server/understanding-full-text-indexing-in-sql-server/

希望这有帮助!

Well, To implement full-text indexing in SQL Server, you should take the following steps:

  1. Create a full-text catalog, if required.
  2. Create the full-text index.
  3. Modify the list of noise words (SQL Server 2005) or stop words (SQL Server 2008), if necessary.
  4. If required, Modify the thesaurus for the language being used.

"The full-text index is updated whenever the data in the base table is
modified." I think that's what I want...does this apply to when
inserts are made to the Entry table?

Answer: YES

I'm hoping I can just set up a catalog to index the 2 columns in this
table and when new records are inserted they are indexed as well
automatically. Can this be done, or do you HAVE TO have some kind of
scheduling option set up? Is that what repopulating really is?

If I'm not wrong you don't have to any such thing. Things will be managed by SQL Server 2008 automatically. First you need to create Full-Text Catalog and after you create your full-text catalog, you’re ready to create your full-text index. You can then associate the index with the new catalog. Then modify stop words. You are done.

The following link will help you to understand the basic of "Full-Text Indexing in SQL Server".

http://www.simple-talk.com/sql/learn-sql-server/understanding-full-text-indexing-in-sql-server/

Hope this helps!

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