Forum Discussion
SharePoint Search wrong ContentType and ContentTypeId for Modern Sites
Hello,
currently I am facing a issue with the SharePoint Online Search and Modern Pages.
I've got SitePages with a different ContentType and want to search for these articles by the ContentTypeId or Name. But the SharePoint Crawler seems to get only the base contenttype "Site Page".
There seems to be something wrong with search. Also the ContentType field is showing "text/html; charset=utf-8 Site Page". It looks like the crawler is not able to read modern sites properly.
I was able to reproduce the issue on different tenant with default site page.
Is someone facing the same problem or got a solution for that? 🙂
3 Replies
- MartijnvLCopper Contributor
Did you find a solution to fix this? We seem to be having the same issue
Same here, with a value "text/html; charset=utf-8 Site Page" in the field ContentType.
Maybe you can use a Handlebar expression in PnP - Search Results WebPart to trim only the relevant part you will see in a column. But you still have the full code in a PnP Refiner WebPart.Best, Dave- MartijnvLCopper Contributor
Thank you for the suggestion, I will try that