The application of HTDIG as search engine has advantages primarily with flexibility and performance. HTDIG is called by the search form of a ZMS site and gives back result pages with consistent navigation.
Solution: The integration is managed via a CGI call in the search form (e.g. /cgi-bin/htsearch) and the maintenance of the corresponding result templates in ZMS. In the text stream the needed pseudo-variables for HTSEARCH are used to insert results in form of simple text sections.
<!----------// BO Search result //----------> <p> You searched this website for <b>'$&(WORDS)'</b> and similar words. </p> <p> Site $(FIRSTDISPLAYED) $(LASTDISPLAYED) of $(MATCHES) found sites: </p> $(HTSEARCH_RESULTS) <br> $(PAGEHEADER) $(PREVPAGE) $(PAGELIST) $(NEXTPAGE) <br> <!----------// EO Search result //----------> <!----------// BO Error //----------> <p> You searched this website for <b>'$&(WORDS)'</b> and similar words. </p> <p> Sorry, no corresponding sites were found.<br> Please put in another search term or try to find the demanded topic via the site navigation. </p> <!----------// EO Error //----------> <!----------// BO long //----------> <p> <a href="$&(URL)"><b>$&(TITLE)</b> </a> <br> $(EXCERPT) <br> <a href="$&(URL)">$&(URL)</a> $(SIZEK)k </p> <!----------// EO long //---------->