1

I am working on a sharepoint online classic team site collection, and inside my site collection classic page, i have added a "content search" web part, to show all the sub-sites, here is my query inside the "content search" web part:-

path:"https://****.sharepoint.com/sites/projects/*"   
contentclass:STS_Web 
-Path:"https://***.sharepoint.com/sites/projects/test/"  
-Title:"Deleted Project" 
-Title:"Test"

And the above was working very well, but today i access the site page and i have noted that the "Content search" web part is not showing any results. now if i remove the contentclass:STS_Web from the query, i will get everything. so seems for a reason or another contentclass:STS_Web is breaking my query,, not sure if sharepoint online no more support contentclass:STS_Web?

Thanks

EDIT--FIX i have re-index the site collection's root site, and now i content search web part is working well. looks a temp problem from sharepoint online!!

  • 1
    Try add it within quotes= "STS_Web" – Robert Lindgren Jan 30 at 11:38
  • @RobertLindgren i already try this and it did not work – SharePoint TestDev Jan 30 at 11:44
  • 1
    Oka. The contentclass:STS_Web surely works in the O365 env:s I have access to. Have you tried to do a search for contentclass:STS_Web in the normal search center, do you get results back then? – Robert Lindgren Jan 30 at 11:46
  • 1
    @RobertLindgren i have re-index the site collection's root site, and now i content search web part is working well. looks a temp problem from sharepoint online!! – SharePoint TestDev Jan 30 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.