In SharePoint 2013 search scopes has been changed by result sources, the “Scopes” is replaced by a new thing called “Result Sources”. By replaced I mean you cannot create or use the Search scopes anymore. No more displaying a custom search scope in a Drop-down next to a search box. Only two system Search scopes All Sites and People will be available at search results page. The method of customizing the display of the search results in SharePoint 2013 search has improved drastically from SharePoint 2010.
What happens to Search Scopes in SharePoint 2013?
They are depreciated or rather are integrated into Federated Search to create an advanced version of these Scopes.
What are Result Sources in SharePoint 2013?
Result Sources are actually the combination of Federated Search and Search Scopes. In SharePoint 2013 you can Create a new Result Source and specify the “Protocol” (to search Local SharePoint or Remote SharePoint farm etc…) and can specify the “Query Transformation”.
1. Log in to your SharePoint Central Administration site as a SharePoint farm administrator.
2. Click ‘Manage service applications’ under the ‘Application Management’ heading.
3. Click ‘Search Service Application’.
4. Click ‘ Result Sources’ under the ‘Queries and Results’ heading in the left-hand navigation panel.
define search scope SharePoint 2013
5. Click ‘New Result Sources ‘.
define search scope SharePoint 2016
Search scopes and the clumsy rules to define them are gone in SharePoint Search 2013
Instead of Search Scopes, SharePoint 2013 Search uses Results Sources to define a subset of searchable content. Result Sources use a query transform property to define the items that are included in the result source
6. Fill the following information on the Add Result Source that is opened
- Name – Key in the Result Source name. The value should be distinct with a different value from any other Result Source.
- Description – For the result that is going to be created, enter the description.
- Protocol – In order to retrieve the search results, this is utilized to select one of the 4 protocols.
In this specific Search Service Application, if the results will be shown utilizing the Search Index, choose Local SharePoint.
A Trust must be set up between the two farms in order to consume the Search Index of another farm. If the Search results are going to be shown utilizing the index of a Search Service in a different farm, select Remote SharePoint.
When the search results are shown using a Search Engine that utilizes OpenSearch 1.0/1.1, choose OpenSearch
When the results are shown using Exchange Server 2013 use Exchange.
- Type – If everything in the Search Index is included in the results displayed using the Result Source, choose SharePoint Search Results. Choose People Search Results when the search results have shown take only results focuses on people.
- Query Transform – A different Query transform can be keyed in or the Query Transform Tab can be omitted with the default query transform. The Query Builder can be set up utilizing a different Query Transform. There will be more discussion in a different article regarding more details on constructing a Query transform using the Query Builder.
- Credentials Information – You can mention the authentication that has to be utilized for connection to the Result Source here.
7. Fill in the information for the new Result Sources, and then click ‘OK’.
Ex: People Scope / Result Sources
You may like following SharePoint 2013 search tutorials:
- Create a result source and use custom result source in content search web part in SharePoint online Office 365
- How to define Search scopes in SharePoint 2013 Using Result Sources?
- How to customize search results look by using result types and display templates in SharePoint Online and SharePoint 2016/2013?
- How to Call SharePoint Search using REST API
Hope it will be helpful to you to define the search scope in SharePoint 2013 using result sources.
Solutions. I am currently working on Sharepoint 2010, MOSS 2007, Sharepoint 2013,Sharepoint 2013 App Dev, C#, ASP.NET, and SQL Server 2008.