This section provides some basic tips for customizing the search and discussion providers.
The Portal Server software provides files to help debug the Search and Discussion providers.
The following directory contains various search log files:
PortalServer-DataDir/searchservers/search1/logs |
The following search log file records the search query sent to the Search Engine by the Search server:
PortalServer-DataDir/searchservers/search1/logs/rdm.0.0.log |
JavaServer Pages for the Search channel are in the PortalServer-DataDir/portals/portal-ID/desktop/default/SearchProvider directory.
JavaServer Pages for the DiscussionLite channel are in the PortalServer-DataDir/portals/portal-ID/desktop/default/DiscussionLite directory.
JavaServer Pages for the Discussions channel are in the PortalServer-DataDir/portals/portal-ID/desktop/default/DiscussionProvider directory.
When you modify statically included JavaServer Pages, be sure to run the touch command, otherwise no changes are reflected. You need to either run the touch command on the top-level JSP file or on all JSP files. For example,
touch searchContent.jsp |
or
touch *.jsp |
See also JavaServer Page Caching Information and Recompiling JSPs.
You can access the search channel directly at the following URL:
http://server:port/portal/dt?provider=JSPDynamicSingleContainer&JSPDynamicSingleContainer.selectedChannel=Search&last=false&action=content |
Modify all the links to use these extra parameters in the URL. For example, edit searchMenu.jsp file as follows:
<nobr> <a class=noUnderline href="<%=dpurl%>?mode=basic">Basic Search</a> </nobr> |
Replace the bold portion with:
http://server:port/portal/dt?provider=JSPDynamicSingleContainer&JSPDynamicSingleContainer.selectedChannel=Search&last=false&action=content |
You can access the Discussion channel directly at the following URL:
http://server:port/portal/dt?provider=JSPDynamicSingleContainer&JSPDynamicSingleContainer.selectedChannel=Discussions&last=false&action=content |