Configure the Search Sitemap portlet for search by external search engines
The Search Sitemap portlet generates a navigable list of all public pages of the portal. Configure the Search Sitemap portlet to determine the limit to the number of links that are displayed per page.IBM WebSphere Portal provides the Search Sitemap portlet. It serves two purposes:
- We can use the Search Sitemap portlet to navigate the portal site. For more information about this refer to Managing pages.
- The Search Sitemap portlet enables external search crawlers to collect portal pages more efficiently. This topic gives more information about configuring the Search Sitemap portlet for search by external search engines.
The Search Sitemap portlet generates a list of all public pages of the portal. Configure the Search Sitemap portlet to determine the limit to the number of links per page. The Search Sitemap portlet lists portal pages to that maximum figure per page and then starts a new page. Set this figure to a maximum of between 50 and 200 links per page for the portal site. for example, the Google search engine recommends fewer than 100 links per page.
Configure the maximum number of links per page for search of the portal by setting the value for the parameter MAX_LINKS in the portlet preferences. We can do this either using the administration portlet Manage Portlets or by updating the portlet preferences in portlet.xml of the Search Sitemap portlet.
Option Description Use the administration portlet Manage Portlets Use this option to update the MAX_LINKS parameter for the Search Sitemap portlet. Proceed as follows:
- Navigate to the Manage Portlets portlet by clicking Administration > Portlet Management > Applications.
- Locate the Search Sitemap portlet by searching for wp.ap.sitesap .
- Click the Configure portlet application icon for the Search Sitemap portlet.
- Add the MAX_LINKS parameter by typing it in the New parameter: field.
- Click OK to save the updates.
Update the portlet preferences in portlet.xml of the Search Sitemap portlet Use this option to set the general default for the parameter MAX_LINKS. Proceed as follows:
- Locate the WAR file of the Search Sitemap portlet in the portal installation. The WAR file is named sitesap.war .
- Edit the file portlet.xml is that WAR file.
- In the section portlet-preferences set the parameter MAX_LINKS to the required value, for example 50. Refer to this example code snippet:
<portlet-preferences> <preference> <name>MAX_LINKS</name> <value>50</value> </preference> </portlet-preferences>
- Redeploy the Search Sitemap portlet.
- Restart the portal.
The Search Sitemap portlet lists only public pages of the portals that is pages, which users can access without logging in to the portal with a user ID and password. Secured portal pages are not available for search by anonymous users and therefore not listed by the Search Sitemap portlet.
Search on the portal by external search engines requires additional configuration. For more details about this refer to Search by external search services.
Parent: Search by external search services
Related reference:
Client identification for search of the portal by external search engines