SharePoint 2013 Search Integrate Bing Result

Few terminology need to understand before integrate the Bing Result

Result Source :-
Result sources In SharePoint 2013 Search define where a search query looks for results. 
SharePoint 2010, result sources replace “search scopes”. In this blog, you will learn how to create a new result source. Specifically, you will create a result source that returns search results from the Bing search engine.

Search Federation 

Federated search can be defined as using search indexes created by other search engines to supplement SharePoint search results. This feature enables the user to retrieve and display search results for content that is not crawled by the SharePoint search server. For example, you can set up a search to return content indexed by an external search engine like Bing. SharePoint can format and display external results on the same search results page along with results from SharePoint search.

  1. Navigate to Site Settings page of Search Center -> Click Search, click Result Source.
  2. Click New Result Source
  3. Name: Federated Results 
  4. Description: Result source for Bing 
  5. Source Information/Protocol: OpenSearch 1.0/1.1
  6. Query Transformation:  {searchTerms} 
  7. Source URL (for Bing): Copy and paste, or type in the following as a continuous string of text: http://www.bing.com/search?q={?searchterms}&format=rss&Market=en-Us Credentials Information: Anonymous At the bottom of the page
  8.  click Save
 Build a Query Rule:-
  1. Navigate to Site Settings page of Search Center -> Click Search, click Query Rules.
  2. 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.
  3. Click New Query Rule.
  4. In the query rule configuration page, under Rule name, type Bing Results.
  5. In the Query Conditions area, click Remove Condition. This means the query rule will fire for all search queries.
  6. 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 theSearch this Source box to select Federated Results.
  2. Change the Items drop-down menu to 5.
  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.


Happy Coding..

3 comments: