Forum Discussion

SteveKnutson's avatar
May 07, 2022

Microsoft Search KQL question

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

 

 

 

    • 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. 

       

      • prahalski's avatar
        prahalski
        Copper Contributor
        I've been trying to find a way to allow selection of workloads besides SharePoint for custom verticals. Not sure why, but Microsoft Search only allows SharePoint. Any idea why and/or how to get around this?

Resources