How to Create Federated Search Results in SharePoint 2013?

What is Federated Search in SharePoint 2013?
As its name suggests, Federated search combines search results from multiple search engines. Federated search allows you to consume search indexes created by search engines outside of SharePoint.

How does the Federated Search work in SharePoint 2013?
Federated Search basically uses the index created by another search engine. When a search query  triggered from SharePoint, it is forwarded to an external search engine and SharePoint gets the result from that index, displays the results from all configured federated sources on a single page to allow users to view results from different sources. E.g. you can set up a federated search to return content indexed by an external search engine like Bing, Twitter, etc.

When to use Federated search?
Federation comes to play when you can not crawl the data source. Federated Search only works with indexes compatible with OpenSearch 1.0/1.1. So, its compatible with other SharePoint farms – You can federate search across farms, YouTube, Bing, Twitter, Flickr, Technet, Wikipedia, etc. (Federated search is not compatible with Google yet – There are some workarounds, however!)

How to Create Federated Search in SharePoint?

There are two steps involved in creating federated search in SharePoint 2013.

  1. Create a Result source for federated content source
  2. Create a query rule to include federated search results in SharePoint search results page

Step 1: Create a Result source for the federated content source
Search Scopes are replaced with “Result Sources” in SharePoint 2013. It just defines where to look for results. E.g. Search for only documents, people, etc. at specific sources such as farm, site collection, or site level.

How to Setup Federated Search in SharePoint 2013?
Federated Search can be configured either at the site level or centrally from SharePoint central administration site. It’s a good idea to configure federated search in SharePoint 2013 at Central Admin so that it can be utilized globally.

  • Go to Central Administration >>  Application Management >> Manage service applications >> Select your  Search Service Application.
  • You’ll be presented with the Search Administration page.

But wait! Here, I’m creating a result source at the site level from the search center site. The below steps are similar whether you are configuring federated search from Central admin or from a local SharePoint site. Let’s configure SharePoint 2013 federated search with Bing at the site level.

  • To start with a federated search in SharePoint 2013, Navigate to Site settings >> Click on the “Result Sources” link under Search group.
  • From the Manage result sources page, click “New Result Source” link. SharePoint 2013 Federated Search Configuration
  • Enter the name for your result source:
    •  I’ve entered “Bing Search Results”
    • Choose the Protocol as “OpenSearch 1.0/1.1
    • Source URL – This is important. Source URL specifies our source for Federation.
      • For Bing – Enter:{?searchterms}&format=rss&Market=en-US
      • For Twitter –{searchTerms}
    • Specify the credentials. I’ve specified “Anonymous”. Click on “Save” button to create result source.
      sharepoint 2013 federated search results

Step 2: Create a query rule to include federated search results on the SharePoint search results page
Query rules define the outcome (Such as Promoted Result, Result block, etc) of search query.

  • From site settings page, Click on “Query Rules” link this time. sharepoint search query rules
  • Choose Result source as “Local SharePoint Results” and click on “New Query Rule” link.
    configure federated search in sharepoint 2013
  • In “Add Query Rule” page, Give a name to your query rule. Click on “Remove Condition” link under Query conditions. In “Actions” section, click on “Add Result Block” link, You’ll be prompted with the “Add Result Block” dialog box.
    sharepoint 2013 create federated search
  • In Add Result block page:
    • Enter the title for your result block. I’ve entered “Bing Search Results for “{subjectTerms}”
    • In Query section, Choose the search source as “Bing Search Results” we created in step 1.
    • Choose Number of items to show in search results.
    • Under Settings, Choose “This block is always shown above core results”option. Click “Ok” to create a result block.
  • Click Save to save your query rule.
sharepoint 2013 federated search bing

That’s all. We’ve done with SharePoint 2013 federated search configuration. Lets see the Federated search results in action:

sharepoint 2013 federated search results

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

2 thoughts on “How to Create Federated Search Results in SharePoint 2013?

  • November 25, 2020 at 5:49 PM

    a very good article to clear your concepts,
    Looking forward for such new articles.

  • October 15, 2019 at 11:47 PM

    Very well explained, thanks


Leave a Reply