Using the SearchGenerator needs some configuration steps regarding
cocoon.xconf
, and the sitemap mounting a pipeline
defining a SearchGenerator generation step. Moreover you will
have to define some XSLT processing for reendering the xml content
of the SearchGenerator.
As SearchGenerator uses some avalon components be sure to configure
your cocoon.xconf
properly. The avalon
componet org.apache.cocoon.components.search.LuceneCocoonSearcher
is used by SearchGenerator.
Usually this component is specified in
cocoon.roles
, and the cocoon.xconf
file
for the default cocoon webapp.
Inside of a sitemap you have to define the SearchGenerator in the
generator componenets section.
Moreover you have to match a URI to the SearchGenerator processing, the
following example matches the URI findIt
to the
SearchGenerator processing. The stylesheet search2html.xsl
transforms the xml content of SearchGenerator to html:
 |  |  |
 |
<map:match pattern="findIt">
<map:generate type="search"/>
<map:transform type="log"/>
<map:transform src="stylesheets/search2html.xsl"/>
<map:serialize/>
</map:match>
|  |
 |  |  |