Build a Federated Result Source for SharePoint 2013 Search – Part 2

In Part 1 of this series, you learned how to set up a new federated result source for Bing search. You will now test the result source using a new features of Search 2013, Query Rules. You will then conduct a SharePoint search query to see search federation in action.

This blog assumes you have access to an Office 365 Enterprise online tenant and that you have completed Part 1 of this series.

Build a Query Rule

  1. Navigate to the tenant’s Search page (it may have the form )
  2. At the upper right of the page, click Settings (gear icon), and from the drop-down menu, click Site Settings.
  3. Under Search, click Query Rules.
  4. Click the down-arrow next to Select a Result Source… and then click Local SharePoint Results. Note: this will enable the query rule to return results from local SharePoint content as well as from the Bing federated result source. In a few minutes, we will configure a result block for the Bing results part of the query rule.
  5. Click New Query Rule.
  6. In the query rule configuration page, under Rule name, type Bing Results.
  7. In the Query Conditions area, click Remove Condition. This means the query rule will fire for all search queries.
  8. In the Actions area, under Result Blocks, click Add Result Block.

Configure the result block

  1. In the Block Title area, change the title to Bing Results for “{subjectTerms}”.Use the drop-down menu next to the Search this Source box to select Federated Results.
  2. Change the Items drop-down menu to 4.
  3. Expand Settings.
  4. Select This block is always shown above core results.
  5. The final Result Block configuration window should look like the following:

Blog2 - 1

Test the query rule

Having set up a query rule that returns federated results,  you will save it and then see it in action.

  1. Click OK to close the Add Result Block window.
  2. Scroll down if needed, and click Save to save the new query rule.
  3. At the upper left of the page, click the SharePoint icon to open a fresh search page.
  4. In the query box, type SharePoint 2013 and click the search icon.
  5. Notice the Bing results at the top of the results page. Below the Bing Results block, you may see local SharePoint results as well.


Congratulations! By completing the two blogs of this series, you have learned to build a simple example of search federation in SharePoint 2013. Specifically, you first built a result source that connects to the Bing search engine. The result source passes a search query and returns Bing results. You then built a query rule that combines the Bing results from the federated source with local results returned by SharePoint 2013 Search.

4 thoughts on “Build a Federated Result Source for SharePoint 2013 Search – Part 2

  1. Thank You.. It woking Good. Good Post

    Could you have any idea for google search in SharePoint 2013

Comments are closed.