SharePoint Developer Center >
SharePoint Products and Technologies Forums
>
SharePoint - Search
>
Change Bing Webpart Results to only show corporate website
Change Bing Webpart Results to only show corporate website
- We just noticed that the search engine in our SharePoint intranet site has that bing webpart.
We are removing the bing web part because they dont provide any prompts that you are leaving the companies intranet.
As an alternative we were thinking of only having it return results from our corporate website, so if someone searches for something on the intranet it might check our corporate website also.
Is doing this an easy change would it require significant modification?- Edited byMike Walsh MVPMVP, ModeratorWednesday, November 04, 2009 3:56 PM"Webpart" added to Title. Was unclear.
Answers
- This is pretty easy to do. First, you will need to index your corporate website if you haven't already. You can do this by creating a new content source and then by specifying the URL to your corporate site. Keep in mind, the indexer server has to be able to access the public site of course. Once you have created the content source, kick off a full crawl.Typically then, I create a custom scope that just has the results from that public site we just indexed. Once you have indexed the site, you need to create a new federated location. What you will do is set it up just like the Local Search Results. You can do this by using the Copy Location option in the menu. You then edit the Query Template to include your scope. If your scope was called "Corporate Site", it would look like this.{searchTerms} Scope:"Corporate Site"Once you have done that, go back and edit your results page. In the location drop down, you can select your new custom federated location and it will show your corporate results there.
Corey Roth blog: www.dotnetmafia.com twitter: twitter.com/coreyroth- Marked As Answer byGreenWaterBoy Thursday, November 05, 2009 7:07 PM
All Replies
- This is pretty easy to do. First, you will need to index your corporate website if you haven't already. You can do this by creating a new content source and then by specifying the URL to your corporate site. Keep in mind, the indexer server has to be able to access the public site of course. Once you have created the content source, kick off a full crawl.Typically then, I create a custom scope that just has the results from that public site we just indexed. Once you have indexed the site, you need to create a new federated location. What you will do is set it up just like the Local Search Results. You can do this by using the Copy Location option in the menu. You then edit the Query Template to include your scope. If your scope was called "Corporate Site", it would look like this.{searchTerms} Scope:"Corporate Site"Once you have done that, go back and edit your results page. In the location drop down, you can select your new custom federated location and it will show your corporate results there.
Corey Roth blog: www.dotnetmafia.com twitter: twitter.com/coreyroth- Marked As Answer byGreenWaterBoy Thursday, November 05, 2009 7:07 PM
The search server should have access to the coporate server. The corporate server doesn't need to be on SharePoint?
- Correct. SharePoint can index regular non-SharePoint web sites using the Web Sites content source type.
Corey Roth blog: www.dotnetmafia.com twitter: twitter.com/coreyroth


