SharePoint Use Cases

23 Oct, 2008

Google, Live.com and Wikipedia Search Web Parts

Posted by: Toni Frankola In: SharePoint  Bookmark and Share

In order to improve this blog I am constantly monitoring activity reports provided by Google Analytics. Few days ago I noticed that someone came to my blog by using the following keywords:

  • add wikipedia searchbox webpart to sharepoint
  • add google search bar to sharepoint

The query seemed interesting and here are some possible solutions:

Solution 1. – Federated Search

With Infrastructure Update Microsoft introduced a new feature for Search. Federated Search allows you to display results from any search engine that supports Open Search standard. Results are being displayed in the right column.

Microsoft offers a number of connectors for various search engines including Live.com, Wikipedia, MSDN and other. Unfortunately Google does not support Open Search.

Federated Search is also available for Microsoft Search Server 2008.

Solution 2. – Custom Search Web Parts

I created three simple web parts (nothing fancy, a bit of JavaScript and HTML) that allow you to easily initiate Search from a SharePoint page.

The following search engines are supported:

  • Google
  • Live.com
  • Wikipedia

You can download these from my SkyDrive.



Documentation Toolkit for SharePoint

Comments

1 | Links (10/23/2008) « Steve Pietrek - Everything SharePoint

October 23rd, 2008 at 5:40 pm

Avatar

[...] Google, Live.com and Wikipedia Search Web Parts [...]

2 | Mark

April 24th, 2009 at 2:59 am

Avatar

The Wiki search worked fine in my Sharepoint site, but can the code be modified to open the search results in a new window.

3 | Toni Frankola

April 24th, 2009 at 3:11 am

Avatar

@Mark: Yes. Just modify the default Javascript with something like this: http://webdesign.about.com/od/javascript/a/aa030600c.htm

4 | Mike F

June 4th, 2009 at 7:49 am

Avatar

To open in a new window, use the following changes:

Replace

window.location.href = ‘http://www.google.com/search?q=’ + document.getElementById(‘QueryGoogle’).value;

with

window.open (‘http://www.google.com/search?q=’ + document.getElementById(‘QueryGoogle’).value, ‘newwindow’, config=’height=1000,width=3000, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, directories=yes, status=yes’);

Thanks Toni! Saved me tons of time.

5 | Ashli

July 31st, 2009 at 7:49 am

Avatar

Hi, I want to try using these, but how do I deploy these web parts so I can use them with just the .dwp file? can you help please?

6 | Toni Frankola

July 31st, 2009 at 7:50 am

Avatar

@Ashli: Just upload files to your web part gallary and that’s it.

7 | Ashli

July 31st, 2009 at 9:13 am

Avatar

Thanks for the help! These are great! Do you have any more web parts to share?

Comment Form


About

Real-life use case and opinions about collaboration, CRM and web technologies and stuff by Toni Frankola. More...

Toni Frankola - SharePoint MVP Profile

All postings on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer.

Page optimized by WP Minify WordPress Plugin