Forum Discussion
Need help on SPFX web part properties search issue
You need to add isSearchablePlainText the parameter to your return value:
protected get propertiesMetadata(): IWebPartPropertiesMetadata {
return {
'spfxcrawl': { isSearchablePlainText: true }
};
}- Yannick PlenevauxSep 19, 2017Copper Contributor
Hi
isSearchablePlainText is not needed if isHtmlString is specified, both flag the property as searchable.
- Sep 07, 2017
Thanks Wictor Wilen,
We did this code changes also but then we found another issue guid of webpart always get padded with text which causes search.
Also we have seen search will not work with classic pages. We got confirmation from MS team this SPFx web part content will not be searchable in classic pages due to existing search architecture for Classic Pages.
Thanks for your reply.
- Yannick PlenevauxSep 19, 2017Copper Contributor
As Velin Georgiev says, the official reference doc might help you.
It does mention that, indeed, SPFx WebPart properties metadata are not handled in classic pages.
"Important: The following guide applies only to SharePoint Framework client-side web parts placed on modern SharePoint pages. Capabilities described in this article don't apply to classic web parts or SharePoint Framework client-side web parts placed on classic pages"
Moreover, the content has to be crawled before appearing in search results. It might take several minutes.
- Velin GeorgievSep 19, 2017Brass Contributor
Hey Guys,
There is another more recent source to take a look at as well. Please have a look at this video from Vesa and Waldek: https://www.youtube.com/watch?v=iB8PBs8RH-E