Pnp Search Result Query Template... configure to show only specific items

New Contributor

Hi there!

I was trying to configure the pnp-search-result-web-part to show only the available sites(site names) on my tenant when a specific vertical is selected... Also in another scenario, I want the pnp-search-result-web-part to show only the list name but not the list items. Kindly help with that.... I suppose this could be achieved using Query Template but I have no idea how to do.. kindly help!



1 Reply
best response confirmed by Rafia2500 (New Contributor)
Issue resolved... I tried {searchTerms} contentclass:sts_(your desire component)... for example {searchTerms} contentclass:sts_site /
{searchTerms} STS_List_GenericList etc