自定义Web部件(SharePoint 365)-内容未编制索引 [英] Custom webparts (sharepoint 365) - content is not being indexed

查看:60
本文介绍了自定义Web部件(SharePoint 365)-内容未编制索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经创建了自定义Webparts. /> 页面中的Web部件未建立索引,也没有出现在搜索结果中.

We have created custom webparts. 
The webparts from the page are not getting indexed, and they are not appearing in search results.

要建立索引的Webparts属性具有元数据集:isSearchablePlainText/

我们启用了始终索引此站点上的所有Web部件".在网站设置上,并要求为网站重新编制索引,但仍然无法正常运行.

许可证E3
We enabled "Always index all Web Parts on this site" on the site settings and requested to re-index the site, but still it doesn't work.

License E3

推荐答案

我了解您正在SharePoint Online中使用SPFX WebPart,并且想使Web部件内容可搜索,请覆盖Web部件类中的propertiesMetadata:

I understand that you are using SPFX WebPart in SharePoint Online and want to make Web Part content searchable, please override propertiesMetadata in web part class:

export default class ArticleLinkWebPart extends BaseClientSideWebPart<IArticleLinkWebPartProps> {
  // ...
  protected get propertiesMetadata(): IWebPartPropertiesMetadata {
    return {
      'title': { isSearchablePlainText: true },
      'intro': { isHtmlString: true },
      'image': { isImageSource: true },
      'url': { isLink: true }
    };
  }
  // ...
}

并且搜索引擎将花费一些时间来进行索引和爬网,因此请等待几天,然后尝试搜索SPFX Web部件标题以查看其是否有效.

And Search Engine will cost some time to index and crawl so please wait for a few days and then try to search the SPFX Web Part title to see if it works.

相同的问题供您参考:

https: //sharepoint.stackexchange.com/questions/237621/how-to-make-spfx-web-part-content-searchable?rq=1

谢谢

最好的问候


这篇关于自定义Web部件(SharePoint 365)-内容未编制索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆