none
How to use Site Collection Result Source? RRS feed

  • Question

  • I've currently defined my site collection to use our Search Center, which added dropdowns for the search verticals of Everything, People, and Conversations as well as leaving the default search to "This Site."

    I have also created a Site Collection Result Source that narrows the results to another site collection.

    I would like to be able to use this site collection result source and I don't actually need the Everything, People, Conversation options or the Search Center at all.

    The end result I'm looking for is two options in my site collection 

    1) Default "This site" search

    2) Custom "Other site" result source that is defined within my site collection

    However, I cannot find any information on how to use a result source defined within a site collection?  All examples and descriptions assume you will be changing the Search Center and using a service level result source.

    Monday, December 21, 2015 8:57 PM

Answers

  • Hi,

    You could go to site settings->search->search settings and add “this site” and “other site” in the search navigation. When you search in home page, you can select search in this site or other site by dropdown.

    And add the url of default search result page as the url of “the site”, it will search in the site collection.

    The link as below:

    http://site collection/_layouts/15/osssearchresults.aspx

    About “other site”, you could create another custom search result page for the “other site”, add search box web part and search result web part and configure the search result web part to use the result source for other site collections.

    Then add the url of the custom search result page as the url of “other site” in the search navigation.

    For more detailed information, you could refer to the articles below.

    The article below is about how to configure the Search Results Web Part to use a new result source in SharePoint 2013.

    https://blogs.technet.microsoft.com/tothesharepoint/2013/11/04/how-to-configure-the-search-results-web-part-to-use-a-new-result-source-in-sharepoint-2013/

    The article below is about limiting search results in SharePoint 2013.

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

    The article below is about how to configure result sources for search in SharePoint Server 2013.

    https://technet.microsoft.com/en-us/library/jj683115.aspx

    Best regards,

    Sara Fan


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Marked as answer by Justin Crosby Wednesday, December 23, 2015 1:16 PM
    Tuesday, December 22, 2015 5:20 AM
    Moderator

All replies

  • Hi,

    You could go to site settings->search->search settings and add “this site” and “other site” in the search navigation. When you search in home page, you can select search in this site or other site by dropdown.

    And add the url of default search result page as the url of “the site”, it will search in the site collection.

    The link as below:

    http://site collection/_layouts/15/osssearchresults.aspx

    About “other site”, you could create another custom search result page for the “other site”, add search box web part and search result web part and configure the search result web part to use the result source for other site collections.

    Then add the url of the custom search result page as the url of “other site” in the search navigation.

    For more detailed information, you could refer to the articles below.

    The article below is about how to configure the Search Results Web Part to use a new result source in SharePoint 2013.

    https://blogs.technet.microsoft.com/tothesharepoint/2013/11/04/how-to-configure-the-search-results-web-part-to-use-a-new-result-source-in-sharepoint-2013/

    The article below is about limiting search results in SharePoint 2013.

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

    The article below is about how to configure result sources for search in SharePoint Server 2013.

    https://technet.microsoft.com/en-us/library/jj683115.aspx

    Best regards,

    Sara Fan


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Marked as answer by Justin Crosby Wednesday, December 23, 2015 1:16 PM
    Tuesday, December 22, 2015 5:20 AM
    Moderator
  • Wouldn't that be creating search navigation at the site level rather than the site collection level?  If I have 5 subsites in my site collection I would need replicate the search navigation 5 times, right?

    Additionally when they do the default search that will take them to osssearchresults.aspx they will not have the "other site" search vertical on that result page, correct?

    Tuesday, December 22, 2015 2:12 PM
  • Hi,

    1. Yes, if you have 5 sub sites in the site collection, you should add search navigation 5 times in each sub sites even if it has been set in the site collection level.

    2. If taking them to osssearchresults.aspx, it will display the “other site” search vertical in the result page if you have set the navigation in the site.

    Best regards,

    Sara Fan


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Wednesday, December 23, 2015 1:25 AM
    Moderator