1

How to configure the Query in the content by search webpart to show only the subsites in a given site collection? The query should not return any kind of documents or images or any other type of content.

In the query text field I have below:-

path:"https://sharepoint.com/teams/MyDevSite"

The above query displays everything within that site collection including sub sites, images, documents etc. How to restrict it show only subsites?

1

If you clicked the Keyword Filter drop down in the query builder, you would've found the option Only return sites. It adds the following to the Query text: contentclass:STS_Web.

  • This query returns subsites of other subsites. Is it possible to return only subsites of current site collection which is in the path parameter? – Manu Jan 30 '15 at 11:47

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.