I have created a page with a search result webpart. I would like to show only results from webapplication "archive.com". Also the site collections and websites inside this webapplication. Do I need to do something like this in the query:

{searchTerms} path:archive.com*

1 Answer 1


You should rather have result source that would limit results in a web application, and later use that result source in all search result web parts.

  • which query do I need to use in the result source. Like my example?
    – Ola
    Jul 7, 2015 at 8:28
  • 1
    You don't need to mention any path unless you filter on a specific site collection results. Just use {?{searchTerms}} Jul 7, 2015 at 9:51
  • I think you do not understand me. I created a new result source. Inside this result source I would like to show only results from webapplication "archive.com". This result source is used in the global search center. So you will see there Everything, conversations, people, documents and my custom result source "Arhive". In my result source I have now: {SearchTerms} Path:archive.com. I was just wondering if this is OK or is there a better way?
    – Ola
    Jul 7, 2015 at 15:15

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.