将网站和页面描述添加到 SharePoint 搜索索引

发布于 2024-08-12 17:35:48 字数 206 浏览 2 评论 0原文

作为 SharePoint 解决方案的一部分,添加了用户通过单击按钮创建新网站和发布页面(以编程方式)的功能。我需要确保新创建的网站和页面的“描述”字段由 SharePoint 搜索编制索引。最好的方法是什么?

请注意,我对开始新的抓取感兴趣。我只是想确保每当下一次计划的爬网发生时,这些字段的内容都将是可搜索的。

谢谢,魔法安迪

As part of a SharePoint solution, the functionality for users to create new web sites and publishing pages (programmatically) via a button click has been added. I need to ensure that the Description field for the newly created sites and pages is indexed by SharePoint Search. What is the best way to do this?

Please note, I am NOT interested in starting a new crawl. I just want to ensure that whenever the next scheduled crawl occurs, the contents of these fields will be searchable.

Thanks, MagicAndi

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

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

发布评论

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

评论(2

〗斷ホ乔殘χμё〖 2024-08-19 17:35:48

我猜您的意思是如何确保该网站立即被索引?

一般来说,抓取是有计划的,这意味着您的新网站只会在下一次抓取完成后才会添加到搜索索引中。因此,如果您的增量爬网每小时发生一次,您可能需要等待一个小时才能将其显示在搜索索引中。

但是,鉴于您的新网站是以编程方式添加的,如果立即开始出现在搜索结果中至关重要,您也可以以编程方式启动增量爬网。 本文详细介绍了如何执行此操作。

更新

下次抓取时应自动将网站标题和描述编入索引。如果没有发生这种情况,则说明您没有内容源 覆盖该网站,因此您需要创建/更新一个来覆盖新网站并确保其具有抓取计划。如果新网站是在单独的网站集中创建的,请考虑将它们放在托管路径< /a>.

在我们的 SharePoint 系统中,我们拥有 100,000 个网站集的 TB 数据,并且每天可能会添加 20 个新网站集。我们只有一个指向网站根目录的内容源,所有内容都会自动索引。

听起来您缺少内容源或抓取计划。

I'm guessing you mean how can you ensure the site is indexed immediately?

Generally, crawls are scheduled which means your new site will only be added to the search index after the next crawl is done. So if your incremental crawl happens every hour you may have to wait up to an hour for it to appear in the search index.

However, given that your new sites are being added programatically you could also programatically start an incremental crawl if it is vital for it to start appearing in search results immediately. There are details how to do this in this article.

Update:

The site title and description should be indexed automatically by the next crawl. If this isn't happening, then you don't have a Content Source that covers that site so you need to create/update one to cover the new sites and make sure it has a crawl schedule. If the new sites are created in separate site collections consider putting them on a Managed Path.

In our SharePoint system we have a terrabyte of data with 100,000 site collections and probably 20 new site collections added every day. We only have one content source that points to the root of the site and everything gets indexed automatically.

It sounds like you're missing a content source or a crawl schedule.

因为看清所以看轻 2024-08-19 17:35:48

事实证明,网站描述默认包含在爬行中。我通过创建一个新站点并向描述分配一个唯一的文本字符串来测试搜索默认属性。在下一次增量爬网之后,我能够通过默认的 SharePoint 搜索来搜索并找到唯一的字符串。

我还没有测试页面描述是否默认包含在搜索范围中,但我准备猜测它是。一旦有机会对此进行测试,我将立即更新我的答案。

It turns out that the site description is included in the crawl by default. I tested the search default properties by creating a new site and assigning a unique text string to the description. After the next incremental crawl, I was able to search and find the unique string via the default SharePoint search.

I have not yet tested if the page description is included in the search scope by default, but I'm prepared to guess that it is. I will update my answer as soon as I get a chance to test this.

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