0

I am using the path token to limit the search result to a site, but that is searching the subsites as well. How can I exclude the subsites and search only the content in the root site and a specific subsite?

example: path:https://domain.com/site/site1 OR https://domain.com/sites/site1/subweb1

but not anything that comes underneath it, like: https://domain.com/sites/site1/sub2 ... etc

can this be done?

1 Answer 1

0

Using = instead of : should do it. Have a look at https://docs.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference for more information

2
  • used it, but returns not results. No content found. Commented Jul 6, 2018 at 14:44
  • Ah i see. You are correct. Then use the first of your options and exclude the subsites in question by using ”-path:” unfortunatelly there is no easy way of doing what you are asking Commented Jul 6, 2018 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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