locked
How to limit search results to a single web RRS feed

  • Question

  • This is probably an easy one to figure out, but I wonder what the best way would be to limit search results from a single web - do you create a content source for that or is there a better way, one which you can configure for multiple search site collections?
    Friday, August 15, 2014 2:19 PM

Answers

  • Hi,

    In SharePoint 2013, we can create content resource for Search Service Application, site collection and site as below:

    http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx

    If you are using Search related web part, you could create content resource in site collection and build query to path=http://webapplication*. Then configure web part to use the specific content resource. Please check the link below, the link is for creating content resource in SSA, you could go to site settings > site collection > search result sources.

    http://techmikael.blogspot.com/2013/04/limiting-search-results-in-sharepoint.html

    However, I’d recommend you using property filter to limit search results to one web application. Please try the steps below:

    1. Build your query.
    2. Basics > query text, input path:http://sp:26* (this limit search results to web application sp:26)
    3. Click test query and see if it return results.

    Regards,


    Rebecca Tu
    TechNet Community Support



    Monday, August 18, 2014 6:19 AM

All replies

  • Hi,

    In SharePoint 2013, we can create content resource for Search Service Application, site collection and site as below:

    http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx

    If you are using Search related web part, you could create content resource in site collection and build query to path=http://webapplication*. Then configure web part to use the specific content resource. Please check the link below, the link is for creating content resource in SSA, you could go to site settings > site collection > search result sources.

    http://techmikael.blogspot.com/2013/04/limiting-search-results-in-sharepoint.html

    However, I’d recommend you using property filter to limit search results to one web application. Please try the steps below:

    1. Build your query.
    2. Basics > query text, input path:http://sp:26* (this limit search results to web application sp:26)
    3. Click test query and see if it return results.

    Regards,


    Rebecca Tu
    TechNet Community Support



    Monday, August 18, 2014 6:19 AM
  • Hi Rebecca,

    Thanks for the reply - this was exactly what I was looking for :-)

    Monday, August 18, 2014 7:23 AM