0

Can you please help me in formulating a KQL or FQL query?

Is it possible to retrieve only 5 people results from the below query. Rest 15 can be anything from the index of the SharePoint Search Service.

{?{searchTerms} ContentClass=urn:content-class:SPSPeople TOP 5}

Top 5 refers only People results

0

You can try adding RowLimit=5 to the query string (not the query), that works for a REST query. If you are working in a web part you can usually specify the number of results in the Web Part properties. Same applies to Query Rules.

1
  • Thank you for the response Matthew. I am looking to limit only people results to 5 in the Search using KQL that we get from the "Launch Query Builder" from the Search Result Sources under "Site Collection Administration" in the SP Settings page. {?{searchTerms} ContentClass=urn:content-class:SPSPeople RowLimit/Top=5} --> This will not work. Do we have any other alternative?
    – Naveen
    Oct 11 '21 at 4:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.