You got Bing results in my SharePoint search!

Are you trying to encourage the usage of your own SharePoint 2013 or SharePoint Online search to find all of the great content you have in your environment but find that users still go to Google or Bing first to find information? How can you encourage users to find existing content that has already been created within your organization before going to the web to find a solution?Maybe the answer is to give users the best of both worlds by integrating internet search results into your SharePoint search. This will allow them to search content within your organization but still be able to quickly see external results as well.Here are the steps to setup Federated search with Bing in SharePoint 2013 and SharePoint Online.

Create the Result Source

First, we need to create a Result Source. A Result Source is basically a pointer to the content we want to search.

  1. Log in as a Site Collection Administrator
  2. Go to Site Settings > Search Result Sources
  3. Click on New Result Source
  4. Enter the Name of the result source (e.g. "Bing Federated Results")
  5. Select OpenSearch 1.0/1.1 under the Protocol section. This will allow you to use any search that follows this protocol, including Bing.
  6. Add the source URL:{?searchterms}&format=rss&Market=en-Us Notice the {?searchterms} portion. This will be replaced by what the user types in the search box.
  7. Set Credential Information to "Anonymous".

Create the Query Rule

Next we want to create a Query Rule. A Query Rule can be configured to execute when certain conditions are met and then to manipulate the results in some way. This can be used to change search result ranking or promote specific content. In our case we will use it to execute a Bing search and include the results above our normal SharePoint results.

  1. Go to Site Settings > Search Query Rules
  2. Select Local SharePoint Results (System) from the content drop down.
  3. Click to create a New Query Rule.
  4. Enter the Rule Name (e.g. Bing Federated Results).
  5. Click the Remove Condition link. We want this to trigger on every search, not just in under specific conditions.
  6. Click the Add Result Block link.
  7. Change the Block Title to something like “Web Results for “{subjectTerms}”
  8. Change the Search this Source drop down to the Result Source you created earlier (e.g. Bing Federated Results).
  9. Change the number of items returned if you want to include more or less results.
  10. Expand the Settings section.
  11. Select the “This block is always shown above core results”.
  12. Optionally, select the “More link goes the following URL” and enter the URL to Bing search page {subjectTerms}. Again, the {subjectTerms} will be replaced with the search terms entered by the user.

Test your search

That last thing to do is to test your search. Execute a search and you should see a new result block containing results from Bing.  You can even click on the Show More link to see the rest of the Bing results.Congratulations! You can now search the internet from SharePoint. Maybe this will help encourage users to feel more confident in using SharePoint search to find the information they need.

More Yammer integration with Office 365

A review of Office 365 and SharePoint announcements in 2014