How to use Keyword Query Language (KQL) query to limit search scope to a particular sub path of a public web site

Mark F 0 Reputation points
2025-03-26T15:10:28.7133333+00:00

Requirement: On a SharePoint Online site, use custom search vertical to display search result from a sub path of the cooperate public site.

What has been done:

1, Created a Microsoft Graph Connector to the public web site https://abcefg.com

2, On the SharePoint Online site level, created a custom vertical using the above connector as content source, in the Query section of the vertical, add KQL query to limit the search result to the sub path of the public web site

I have tried the following KQL queries but none worked.

path:https://abcefg.com/d88

path:https://abcefg.com/d88/

I used reference here

https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference

I would appreciate any help on this. Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,482 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.