自定义Web部件(SharePoint 365)-内容未编制索引 [英] Custom webparts (sharepoint 365) - content is not being indexed
问题描述
我们已经创建了自定义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/
许可证E3
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.
相同的问题供您参考:
谢谢
最好的问候
这篇关于自定义Web部件(SharePoint 365)-内容未编制索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!