Forum Discussion
Getting rich text from SPFx web parts into the search index
- Mar 14, 2018
Hi Aaron Hawryluk. Actually, the content in the react-textboxio sample Web Part is indexed as an HTML string according to this https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/integrate-web-part-properties-with-sharepoint:
protected get propertiesMetadata(): IWebPartPropertiesMetadata { return { 'content' : {isHtmlString: true} }; }As I remember and according to this https://github.com/SharePoint/sp-dev-fx-webparts/issues/102, the content is indexed and then available trough the "Description" managed property so it is not available trough the full text index. Can you check if you can get your content by querying this property explicitly?
Franck.
Hi Aaron Hawryluk. Actually, the content in the react-textboxio sample Web Part is indexed as an HTML string according to this https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/integrate-web-part-properties-with-sharepoint:
protected get propertiesMetadata(): IWebPartPropertiesMetadata {
return {
'content' : {isHtmlString: true}
};
}
As I remember and according to this https://github.com/SharePoint/sp-dev-fx-webparts/issues/102, the content is indexed and then available trough the "Description" managed property so it is not available trough the full text index. Can you check if you can get your content by querying this property explicitly?
Franck.
- Aaron HawrylukMar 15, 2018Copper Contributor
Thanks Franck, that worked!