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:
- From the main portal menu, click .
- Locate the Search Center page, which is under
- Click Edit Page Layout.
- Click Add Portlet.
- Select External Search.
- Click OK to add the searchlet.
Configure the searchlet portlet:
- From the main menu, click
- In the list of portlets, locate External Search,
and click on the Configure button next to the portlet
name.
- 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}
- 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.
- 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.
- 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
|
|
|