Hello,
I have requirement to display list of site and its sub sites for which I am using Content Search web part , but I am not able to get the result the way I need.
I have tried following queries :
contentclass:"STS_Site" - This gives me only list of site collections.
contentclass:"STS_Site" contentclass:"STS_Web" - This gives me list of site collections and sub sitesrandomly.
What I need , for example There are following site structure
SiteCollection 1 is having Web1,Web2,Web3
Site Collection 2 is having Web4,Web5,Web6
I need list as below:
Site Collection 1
Web1
Web2
Web3
Site Collection 2
Web4
Web5
Web6
Would you please let me know which search query syntax can provide me list as above ?
Thank you in advance !
Kindest Regards,
Dipti Chhatrapati