Chapter 4. Templates and Search Results

Table of Contents
How can I have multiple templates without loading the same index multiple times?
How do I get a copy of the searched text inside my search box once search operation results show.
How can I update the template search page without restarting Alkaline?
How can I keep the case-sensitive box checked in Alkaline results?
How can I implement a Hide Summaries option?
Does Alkaline support banner ad display based on keyword searches?
Does Alkaline support other languages than English? Does Alkaline index Unicode or DBCS documents? Can I get a localized version of Alkaline?
The date shown by $date is wrong, what is the difference between $date and $modif?
My urls are entered through a set of checkboxes on the search form. When the results template is displayed, those urls get displayed. How can I avoid that?
Can I return an .asp file instead of a simple html page filled with search results?
How does Alkaline rank results? Is it possible to configure and modify the ranking?
I have file names with spaces. When Alkaline outputs results, they contain a space and the link is wrong. How can I urlencode these?
I have really long urls. When a page doesn't have a title, that really long url is output. How can I cut the title to N characters at most?
I would like to have a .php template or a dynamic cgi-bin program generate a template. Does Alkaline support cgi?
How do I enable search terms highlighting within results?

How can I have multiple templates without loading the same index multiple times?

The second argument passed to Alkaline when a search is made (for example, search.html , in http://www.foo.com:9999/foo/search.html ) defines which template page to use. You can have as many template pages as wanted and create other names than search.html. To point to remote locations, use a .aln file which contains the url of the search template.

Templates are fully explained in the Alkaline documentation at http://www.vestris.com/docs/alkaline/templates.html .