currently my SharePoint site display search result from all web application.

I'm trying to create new search New result source for from site settings which will display results from current web application only.

Is is possible to do that?

Please suggest something.

1 Answer 1


Create a result source from the Search service application were the web-application URL is included, like this:

{?{searchTerms} -ContentClass=urn:content-class:SPSPeople path:https://webapplicationurl.domain.com/*

('{?{searchTerms} -ContentClass=urn:content-class:SPSPeople' is from the default result source query to return everything but users.).

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.