手动请求对网站、库或列表进行爬网和重新编制索引Manually request crawling and re-indexing of a site, a library or a list

在 SharePoint 中,根据定义的爬网计划自动对内容进行爬网。In SharePoint, content is automatically crawled based on a defined crawl schedule. 爬网程序选取自上次爬网以来已更改的内容,并更新索引。The crawler picks up content that has changed since the last crawl and updates the index. 架构更改发生后,您需要手动请求对网站、文档库或列表进行爬网和完全重新编制索引。You will want to manually request crawling and full re-indexing of a site, a document library, or a list after a schema change has occurred.

注意

重新编制网站的索引可能会导致搜索系统上的负荷大量增加。Re-indexing a site can cause a massive load on the search system. 不要对网站重新编制索引,除非您进行了需要重新编制所有项目的更改。Don't re-index your site unless you've made changes that require all items to be re-indexed.

更改托管属性后重新编制索引Re-index after changing managed properties

当用户搜索 SharePoint 网站上的内容时,搜索索引中的内容将决定他们将找到的内容。When people search for content on your SharePoint sites, what's in your search index decides what they'll find. 搜索索引包含网站上所有文档和页面中的信息。The search index contains information from all documents and pages on your site.

搜索索引通过对 SharePoint 网站上的内容进行爬网来构建。The search index is built up by crawling the content on your SharePoint site. 爬网程序以已爬网属性的形式从文档选取内容和元数据。The crawler picks up content and metadata from the documents in the form of crawled properties. 若要将文档的内容和元数据获取到搜索索引中,必须将已爬网属性映射到托管属性。To get the content and metadata from the documents into the search index, the crawled properties must be mapped to managed properties. 索引中仅保留托管属性。Only managed properties are kept in the index. 这意味着用户只能搜索托管属性。This means that users can only search on managed properties.

如果更改了托管属性,或者更改了已爬网属性和托管属性的映射,则必须对网站重新爬网,然后才能将更改反映在搜索索引中。When you have changed a managed property, or when you have changed the mapping of crawled and managed properties, the site must be re-crawled before your changes will be reflected in the search index. 由于您的更改是在搜索架构中而不是实际网站中所做的更改,因此爬网程序不会自动对网站重新编制索引。Because your changes are made in the search schema, and not to the actual site, the crawler will not automatically re-index the site. 若要确保对更改进行爬网并完全重新编制索引,必须请求对网站重新编制索引。To make sure that your changes are crawled and fully re-indexed, you must request a re-indexing of the site. 网站内容将重新爬网和重新编制索引,以便您可以开始在查询、查询规则和显示模板中使用托管属性。The site content will be re-crawled and re-indexed so that you can start using the managed properties in queries, query rules and display templates.

您还可以选择仅对文档库或列表重新编制索引。You can also choose to only re-index a document library or a list. 如果更改了库或列表中使用的托管属性,或者更改了已爬网属性和托管属性的映射,则只能专门请求对库或列表重新编制索引。When you have changed a managed property that's used in a library or list, or changed the mapping of crawled and managed properties, you can specifically request a re-indexing of that library or list only. 该库或列表中的所有内容都标记为已更改,并且内容将在下一次计划爬网期间进行选取并重新编制索引。All of the content in that library or list is marked as changed, and the content is picked up during the next scheduled crawl and re-indexed.

在管理 SharePoint 中的搜索架构中了解有关搜索和已爬网和 托管属性的更多信息Learn more about search and crawled and managed properties in Manage the search schema in SharePoint.

另请参阅 :启用网站上的内容可搜索See also: Enable content on a site to be searchable

对网站重新编制索引Re-index a site

  1. On the site, select Settings  Settings icon. , and then select Site settings.On the site, select Settings Settings icon., and then select Site settings. 如果看不到"网站设置 ",请选择"网站 信息",然后选择"查看所有网站设置"。If you don't see Site settings, select Site information, and then select View all site settings.

  2. "搜索" 下,单击"搜索和脱机可用性"。Under Search, click Search and offline availability.

  3. 在"重新索引站点"部分,单击 "重新索引站点"。In the Reindex site section, click Reindex site.

  4. 出现警告,再次单击 "重新索引站点 "以确认。A warning appears, click Reindex site again to confirm. 将在下一次计划爬网期间对内容重新编制索引。The content will be re-indexed during the next scheduled crawl.

对文档库或列表重新编制索引Re-index a document library or a list

  1. On the site, go to the list or library that you want to re-index.On the site, go to the list or library that you want to re-index.

  2. 在功能区中,单击" 库" 选项卡或" 列表" 选项卡。In the ribbon, click the Library tab or the List tab.

  3. 在"库"功能 区中,选择"库设置"。In the Library ribbon, choose Library Settings. 或者,在"列表"功能区 中,选择"列表设置"。Or, in the List ribbon, choose List Settings.

  4. 在"设置"页上的"常规 设置"下,选择"高级设置"。On the Settings page, under General Settings, choose Advanced settings.

  5. 向下滚动到 "为列表重新文档库 索引"或" 重新索引列表",然后单击按钮。Scroll down to Reindex Document Library or Reindex List, and click the button. 将在下一次计划爬网期间对内容重新编制索引。The content will be re-indexed during the next scheduled crawl.

另请参阅See also

Get-PnPSearchCrawlLogGet-PnPSearchCrawlLog