如何从 TaxonomyHiddenList 中删除过时/孤立的项目
环境说明:我正在运行 SharePoint 2010 SP1,12 月 CU。我有一个包含分类列的列表项。正如预期的那样,如果从术语库中删除术语(例如“foo”),用户将不再将“foo”视为新项目的选项,但该术语仍保留在以前的项目中,因为“foo”未从 TaxonomyHiddenList 中删除通过分类更新调度程序作业。
问题: 这会带来搜索问题,因为如果删除“foo”,我们不希望任何人知道“foo”存在于我们网站的任何位置。
期望的行为: 除了更新当前项目之外,我还希望从 TaxonomyHiddenList 中删除孤立术语
建议的解决方案: 编写自定义计时器作业以迭代所有术语并从 TaxonomyHiddenList 中删除任何孤立项目
问题: 这是一个可行的解决方案吗?我错过了什么吗?有没有比手动处理 TaxonomyHiddenList 更优雅的方法来处理这个问题?
Explanation of environment: I am running SharePoint 2010 SP1, December CU's. I have a list item which has a taxonomy column. As expected, if a term (e.g. “foo”) is deleted from the term store, users no longer see “foo” as an option for new items, but the term remains on previous items because “foo” is not deleted from the TaxonomyHiddenList by the Taxonomy Update Scheduler job.
Problem:
This presents problems with search because if “foo” is deleted, we don’t want anyone to ever know “foo” existed anywhere on our site.
Desired Behavior:
In addition to updating current items, I would like orphaned terms to be deleted from the TaxonomyHiddenList
Proposed Solution:
Write a custom timer job to iterate through all terms and delete any orphaned items from the TaxonomyHiddenList
Question:
Is this a viable solution? Am I missing something? Is there a more elegant way to handle this than manhandling the TaxonomyHiddenList?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我认为这就是您所追求的: http: //msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomysession.synchiddenlist.aspx
I think this is what you are after: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomysession.synchiddenlist.aspx