Federated Search: Search Result from Google, Twitter & YouTube in SharePoint Search Results
Federated Search is technology that allows searching in multiple search location simultaneously. A single query request is used to search in all search location. SharePoint 2007 has the option to have a Federated Search.
Before using Federated Search, we need to define the locations that need to be searched. We need to use the Federated Search location in our SSP.
In the SSP go to Search administration page and select Federation Locations on the left hand side under Queries and Results tab. By default SharePoint 2007 has the following Federated Search locations pre-defined.
· Internet Search Results – Returns result from Search.live.com
· Internet Search Suggestions – Returns “Related Searches” suggestions from Search.live.com
· Local Search Results – Returns results from the local Search Server or SharePoint Server Index
Federated Location Description (FLD) file needs to define in Manage Federated Locations in SharePoint. We can download the pre-configured connectors from here
I have downloaded the Twitter Federated Location Description from the above location and import in SharePoint.
Federated Search results are displayed only using the following two new search results web parts
· Federated Results Web part
· Top Federated
The Federated Search web part displays a preconfigured number of results from a single connected Federated Location
The Top Federated Results web part displays a preconfigured set of results (usually just the top one or two results) from a list of up to 10 connected Federated Locations.
Note: It is not possible to combine results from Federated Search and from local SharePoint Locations.
After importing the Twitter Federation Location Description file, edit the location file and add/modify the author, version information. Check the Location Type, Query Template & More Results Link Template fields.
Edit the Search Results Page and add a Federated Search Result web part. Modify the Federated Search Result web part and change the location to Twitter. Click the Apply button & exit the Edit page.
I have done a Tweet in Twitter and Search in SharePoint. Cool. My tweets came in the search results
If default Branding Icon (Twitter Icon in the above picture) is empty follow the steps to add the icon.
1. In the Edit Location configuration page, scroll down to the Display Information section and uncheck the Use Default Formatting check box in the Federated Search Results Display Metadata section and copy the contents of the XSL text box into Notepad.
2. Search the XSL for the following tag:
< xsl:param name=”BrandingIcon” > < /xsl:param >
3. Insert the URL to your image into the XSL parameter tag, for example:
< xsl:param name=”BrandingIcon” > http://yourURL/yourIcon.gif < /xsl:param >
4. Copy and paste the updated XSL from Notepad back into the XSL text box in the location, scroll down to the bottom of the location, and click OK.
Note: The image should ideally be 16 x 16 pixels in size.
Follow the above steps to add the Federated locations for Google and YouTube.