0

I am trying to get the content search webpart to display a list of subsites but it only shows me the site I am on (Topsite)

Here is my query:

Path:"https://sitename.sharepoint.com/projects " contentclass:STS_Web SiteTitle <> projects

Can anyone please advise?

Thanks!

Alan

1

You could either try with a wildcard

Path:"https://sitename.sharepoint.com/projects/*" contentclass:STS_Web SiteTitle <> projects

Or got with the URL Depth property:

Path:"https://sitename.sharepoint.com/projects " contentclass:STS_Web SiteTitle <> projects UrlDepth=1

And to make it a little bit smoother, go with

Path:{Site.URL} UrlDepth=1 contentclass:STS_Web
0

This is what the query should have been: Path:"https://sitename.sharepoint.com/projects " contentclass:STS_Web Site<>{Site.URL}

Also remember to give SHarePoint a chance to index your new sites.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.