Query template
1 TopicPnP Modern Search - Query Term - Search Hub and Associated Sites
Hi, I have created an Advanced Search page with PnP verticals that I would like to search individual hubs and their associated sites. For example my verticals are as follows: All Hubs, Knowledge Hub&Associated Sites, Communities Hub, Colleague Hub The Knowledge Hub is the only one that has 30 plus associated sites and I would like to enter some query text in for the Knowledge Hub results to return results for that hub and all 30 sites. Does anyone know what the query looks like for this? I thought it was would be this: {searchTerms} RelatedHubSites:{Hub.Id} but this only works on the hub where the search page has been developed, I am hoping there is away to look across another Hub in a separate site collection? ThanksSolved4.7KViews0likes5Comments