Mark Wagner's .NET C# Cogitation

.NET Architect and Developer - Simple Thoughts from a Simple Mind

  Home :: Contact :: Syndication  :: Login
  90 Posts :: 59 Articles :: 1548 Comments :: 202 Trackbacks

News

You can download this .TEXT blog skin free. Download Cogitation Blue skin.
Updated May 6, 2004

My Sites
- New SharePoint Blog
- My Developer blog
- My Personal blog
ASP.NET Web Hosting
I host my site here. The best value for quality hosting. Read my opinion here. If you decide to join, please use this link. Thank you very much.


Legal
Any and all code, software, examples, suggestions and anything else on this web site is available for you to use at your own risk. No warranty is express or implied.
Views and Opinions
Mark Wagner works for Microsoft in the Consulting Services division and covers the West Region. The views and opinions expressed on this web site are not necessarily the views or opinions of his employer.

Article Categories

Archives

Post Categories

.: Architecture Links :.

.: Developer Links :.

.Text and RSS Links

Blog Roll - Top Guns

Developer: .NET Security

Developer: C# Team

Developer: Flash

Developer: JavaScript

Developer: Pocket PC

Personal: Aviation

Personal: Favorites

Google Search Web Part

Mark Wagner
http://blogs.crsw.com/mark
June 10, 2005

Article: http://blogs.crsw.com/mark/articles/1009.aspx

I created a custom Google web part a few weeks ago for my demo SharePoint site.  You can see what it looks like on my testing SharePoint home page http://sharepoint.crsw.com.  The Google web part submits a search request by navigating the user directly to the Google search web page and performs a Google search using the Google search engine.  I have since received a number of emails requesting to get this web part for use on their SharePoint sites, so I decided to make it available for others.

First and foremost, the Google name and search service are the property of Google.  I have no affiliation with the Google name and its services.

Google is a must-have resource for my daily work.  If I need to find something, I Google it, and nothing else comes close when searching on the Internet.  With this dependency, I had to have it on my new SharePoint demo site.  My SharePoint demo site is more of a test-harness at this point since it is hosted on a shared/public server, so don’t be too disappointed when you see it.

For those of you not familiar with Google, welcome to the Internet.  Google is the single best Internet search service available on the Internet, for the Internet.  If you need to find something on the Internet, Google will find it for you.  This process of searching is commonly referred to Googling.  If you Google something, your are using Google to search the Internet for it.  For the rest of you, Google is probably how you found this article.

It is important to remember that this Google Search web part is not intended to replace the SharePoint search feature.  In order for Google to find any results, Google must have already searched and indexed your site.  Also remember that Google will not be able to crawl and index pages on your SharePoint site that are not accessible to the public.  This is where the SharePoint search has the upper hand.  Again, this web part is not intended to replace the SharePoint search feature, but to conveniently access the much used Google search from your SharePoint page.

Configuring the Google Search Web Part

Here is a picture of the web part configurations.

Google Image URL

Once you have installed the web part, in the configuration options of the web part is a Google Image URL property which defaults to an image on Google’s web site.  You should use the default url for the Google image.  I have made this property available just in case Google renames or moves their image.

This Google Search Web Part can be configured in three distinct ways.


Standard Google Search

Local Site Search

Custom Site Search

 

Complete article here...

posted on Wednesday, June 08, 2005 4:21 PM

Feedback

# re: Google Web Part for SharePoint 6/10/2005 5:01 AM Dave Woods
Looking forward to downloading your Google Web Part :)

# re: Google Web Part for SharePoint 6/10/2005 8:42 AM Kent Chen
Just curious, is the search part linked with google adsense? If yes, I would suggest not using it as my account has been disabled by Google before when I use my coded Google search and use it for my Internet search. They would consider you are cheating.

# re: Google Web Part for SharePoint 6/10/2005 1:36 PM Mark Wagner
Hi Kent,

I'm not using google adsense. I'm not exactly sure what that is - so I'll have to check it out. I'm using basic URL parameters. Specifically the "q=" and "site=" parameters.

Let me know if you think is violating something with Google's policy.

Thanks for the heads up. I'll have to check into it.

# re: Google Web Part for SharePoint 6/10/2005 2:03 PM Kent Chen
Hi Mark,

As long as you are not using Google Adsense, it is fine. In fact, they encourge you are doing that way.

by the way, I really enjoyed reading your articles here. Good job.

Kent

# re: Google Web Part for SharePoint 6/20/2005 3:16 AM Rich Ellis
Are the install instructions coming?

# re: Google Web Part for SharePoint 7/29/2005 10:19 AM Steven Jackson
Mark,

Nice job! This is exactly what I was looking for to use on my intranet site.

One question, is it possible to have the search results open a new window rather than have it replace the sharepoint page?

Thanks!

# Google Web Part per SharePoint 8/10/2005 1:50 AM marcellino


# re: Google Web Part for SharePoint 8/15/2005 3:32 AM boredom_prevails
Greetings!

First, the web part is cool and very handy. Thank you for sharing. I've been asked to have google search up on SharePoint a lot. I deployed it to the single server - no problem. Trying to deploy it to multiple servers - a tricky issue. Any ideas?

# Google Web Part per SharePoint 10/17/2005 1:59 AM marcellino


# re: Google Web Part for SharePoint 10/19/2005 3:23 PM josh
Can you please email me this webpart
adon378@yahoo.com

Thanks

# re: Google Web Part for SharePoint 8/31/2006 5:54 PM James
Nice webpart but I live in australia, is there a way I can change the default google engine to www.google.com.au?

James

# re: Google Web Part for SharePoint 9/22/2006 3:49 AM Chris
Very Nice! I've been looking for something like this for our intranet.

I've created a page for our techs to get directions. All they need to do is enter the destination address and it maps from the office. Is there a way to do this in a Web Part?

Thanks Again,
Chris

# re: Google Web Part for SharePoint 9/29/2006 4:46 AM Dave Blancard
Nice Job Mark.

Need a way to allow the option of opening the results in a new window, so that users are not taken away from the Sharepoint site.

Thanks Again,

# re: Google Web Part for SharePoint 1/18/2007 4:16 PM Youni
is it possible to search in side file in sharepoint ? thank you

# SharePoint RSS and Web Part Tips 5/11/2007 2:32 PM Joel Oleson's SharePoint Land
Yesterday I provided some info on RSS TTL. Same line of thinking... RSS is changing the world. A very

Post Feedback

Title:
Name:
Url:
Comments: 
Enter the code you see: