WebSphere Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows


 

Adding and configuring a searchlet

Configure a searchlet that retrieves and displays search results from third-party search engines such as Yahoo or Google, then add the searchlet to the Search Center.

You must be logged in as Administrator to add a searchlet to the Search Center. A searchlet is a specialized portlet that can be added to Portal Search. When a searchlet has been added to Portal Search, the results of a search initiated from the Search page include results from third-party external search engines such as Yahoo or Google. More than one searchlet can be added to the Portal Search page, and each searchlet can be configured to display a specific number of search results.

To add a searchlet to the Portal Search page:

  1. From the main portal menu, click Administration > Manage Pages.
  2. Locate the Search Center page, which is under Content Root > Search
  3. Click Edit Page Layout.
  4. Click Add Portlet.
  5. Select External Search.
  6. Click OK to add the searchlet.
Configure the searchlet portlet:

  1. From the main menu, click Administration > Portlets
  2. In the list of portlets, locate External Search, and click on the Configure button next to the portlet name.
  3. Edit the value of the searchEngineUrl parameter. This value represents the URL of the third-party search engine that will be queried. The string ${searchTerms} must be included in the value. This string will be replaced by the actual query during the search. For example:
    http://example.com/?q={searchTerms}
  4. Edit the value of the searchEngineFullPageUrl parameter. This value represents a parameterized form of the URL used to locate the search engine that will be queried. The string ${searchTerms} must be present in the parameter value. The string will be replaced by the actual query during search. For example:
    http://www.flickr.com/search/?q=${searchTerms}&m=tags
    This URL should return the public HTML page of the search engine.
  5. Edit the value of the numOfEntries parameter. This parameter determines the maximum number of search results which will be displayed. The default number is 3, but you can enter a different numeric value to increase the maximum.
  6. Optional: If the external search engine returns search results in a format which is not supported, or if the provided rendering of the search results is not acceptable, an XSLT file can be specified. Edit the value of the externalXsltUrl parameter to supply a URL for an external XSLT file.Note: The XSLT should not create an entire HTML document, but an HTML fragment which can be embedded inside a page. The URL of the XSLT file us supplied by the externalXsltUrl parameter.
Parent topic: portlets, such as a searchlet or recommended links. The searchlet displays search results from third-party external search engines such as Yahoo and Google. Using the recommended links portlet, display search results from a collection of predefined links with predefined keywords. You can also configure the All Sources scope or replace it with a customized scope.">Customizing the Search Center Related tasks
Configuring and adding a recommended links portlet Managing search scopes and custom links Customizing the All Sources scope
Library | Support | Terms of use |