Sharepoint Search: Site Collection Results

Andre De JagerSolutions Architect
Published:
Updated:
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.

When using a search centre, it's useful to be able to only return search results from the current site collection. This comes into play when using Office 365 with multiple site collections.


After creating a new Search Centre sub-site in the current site collection, 

  1. Go to Site settings on the site collection
  2. Click on “Search Result Sources”
  3. Create a new source as per below

     
  4. Launch Query Transform and set the following parts of the Property filter:
    • "Path", "Contains" and "This site collection" as shown below
    • Query text should read: "{searchTerms} Path:{SiteCollection.URL}"
       
    • Click “Add property Filter”

  5. Set new result source as default


Now searching from your search centre, will only return results from the current site collection.


0
1,299 Views

Comments (0)

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.

Get access with a 7-day free trial.
Continue Growing Your Skills and Your Career
  • Interact with leading experts on your specific technology problems.
  • Receive the guidance of experienced professionals.
  • Learn from troubleshooting others have experienced.
  • Gain knowledge from a library of courses, all included.