Previous Page: How to Create a Customized Search Solution  Next Page: Customizing Print Result Templates

Customizing Search Result Templates

NetWare Web Search Server includes several default search result templates that are used to display hits, provide feedback to a user, or request information from a user after a search is performed. For more information about the default search result templates, see Understanding Templates.

You can customize the design and functionality of the default search result template, the template used when a user selects Normal from the Result List Format drop-down list in the NetWare Web Search form. For information about how to access the NetWare Web Search form, see Taking a Test Run.

Customizing the default search result template involves

If you are familiar with HTML, you can quickly modify the design of the default search result template. For example, you can change the background color, link colors, or add new graphics.

To modify the functionality of the default search result template, you add or remove search result variables. Search result variables are placed in the template where you want search results to be displayed.

For example, if you wanted to display the total number of hits returned when a user performs a search (a feature this is already implemented in the default search result template), and you wanted the information to appear in the upper left corner of the search results page, you would add the following HTML code to the search result template (HTML) file:

<tr><td>Total Search Results: </td> <td>&nbsp;&nbsp;$$TotalHits</td> </tr>

After a user performs a search, the $$TotalHits variable would be replaced by the actual total number of hits found during the search.

The $$TotalHits variable is used to retrieve the total number of hits found during a search. You can place this variable anywhere in the results list template to organize the display of information in the way you want.

TOOL TIPDefault search result templates are located in SYS:NSEARCH\TEMPLATES\. For a complete list of search result variables that you can use to customize default search result templates or to create new ones, see Table 5.



  Previous Page: How to Create a Customized Search Solution  Next Page: Customizing Print Result Templates