May 07 2022 02:04 PM
I want to create a custom search vertical in Microsoft Search that returns People results only. I have created a new Search Vertical and added the following KQL in the Query option but it doesn't return any results.
({searchTerms})(ContentClass=urn:content-class:SPSPeople)
Have I got the syntax right or am I missing something else?
Any pointers to help solve this would be much appreciated.
Thank you,
Steve
May 10 2022 05:20 AM
@Steve Knutson, your query should work, but you can try modifying it to this:
{?{searchTerms} ContentClass=urn:content-class:SPSPeople}
Have you checked that your result source includes Local People Results?
https://27sb3h-admin.sharepoint.com/_layouts/15/searchadmin/ManageResultSources.aspx?level=tenant
May 10 2022 04:44 PM
@Maggan_W thank you, I think that helps answer my question.
Microsoft Search doesn't allow you to select a specific result source when creating a custom search vertical. The "SharePoint" option doesn't include people results, which is why I get nothing back when I use the KQL query.
I've gone with plan-b and used PnP Search with some filtering to exclude guest users. That does the trick for now.
Mar 11 2023 04:44 PM