This is a blog post in the series “Set up a Search Center in SharePoint 2013”.
In the previous blog post, I showed you how to create a Search Center Site Collection and enable crawling of your content. In this post you’ll learn:
How to turn off versioning for the Pages libraryIf you don’t want to check pages in and out when you configure the Search Results Web Part, you can turn off versioning for the Pages library.
To turn off versioning for the Pages library:
Why you should consider creating a result source for your Search CenterA result source specifies where your search results can come from.
For example, in my scenario, I did not want search results to come from all sites within the SharePoint farm. I only wanted search results from one specific site within the farm.
The default result source in a Search Center returns search results from the entire SharePoint farm. If you want search results from the entire SharePoint farm, you can skip to the next blog post in this series. However, if you want search results from only a sub set within your SharePoint farm (in my scenario, one specific site), you should create a result source.
How to create a result sourceDepending on your permission level, you create a result source on three levels:
To save space, I will only show you how to create a result source as a Site collection administrator.
Now, before we move on, let me break down what I entered:
Notice that 52 results were returned (I will tell you why this is kind of cool in the next section…).
So now that we have a result source for the Search Center, we can move on to configuring the Search Results Web Part to use the new result source.
How to configure the Search Results Web Part to use a new result sourceBy default, the Search Results Web Part is used on the search results page. In order to configure the Search Result Web Part, you have to navigate to the search results page.
When you press Enter, you will be taken to the to the search results page (the default URL to this page is <site>/Pages/results.aspx).
In my scenario, 1,051 search results were returned.
Remember, by default you’ll get search results from the entire SharePoint farm. To change this so that only search results from your newly created result source are returned, here’s what you should do:
52 results were returned, which is the same number of items that was returned when I tested the query in the result source configuration. Cool, don’t you think?
Now that the Search Results Web Part displays the search results we are interested in, the next step is to make it easier for users to filter these search results. To do this, we'll use refiners, which is the subject of the next blog post.
Next blog post in this seriesPlan to use refiners on a search results page