forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthik Manimaran <mknapa...@gmail.com>
Subject Forrest-Lucene help needed
Date Thu, 10 Nov 2005 03:53:28 GMT
>
> Hi,
>  I am trying to make the raw HTML included as static content in
> src/documentation/content directory be indexed and searched by Lucene.
>  I have a directory src/documentation/content/javadocs which contains
> javadocs for some components as html/other files.
>  The following try doesnt seem to work. Pointers to errors/changes that
> need to be made in search.xmap needed.
>
  <map:match pattern="*.lucene">
<map:select type="exists">
<map:when test="{project:content}{0}.html">
<map:read src="{project:content}/{0}" mime-type="text/html"/>
<map:generate type="html" src="{project:content}/{0}" />
<map:serialize type="html"/>
<map:generate src="cocoon://{0}.xml"/>
<map:transform src="{forrest:stylesheets}/search/document2lucene.xsl">
<map:parameter name="document-url" value="{0}.xml"/>
</map:transform>
<map:serialize type="xml"/>
</map:when>
</map:select>
</map:match>
<map:match pattern="**/*.lucene">
<map:select type="exists">
<map:when test="{project:content}{1}{2}.html">
<map:read src="{project:content}/{0}" mime-type="text/html"/>
<map:generate type="html" src="{project:content}/{0}" />
<map:serialize type="html"/>
<map:generate src="cocoon://{1}{2}.xml"/>
<map:transform src="{forrest:stylesheets}/search/document2lucene.xsl">
<map:parameter name="document-url" value="{1}{2}.xml"/>
</map:transform>
<map:serialize type="xml"/>
</map:when>
</map:select>
</map:match>
 Thanks and regards,

> Karthik.
>
<user@forrest.apache.org>

Mime
View raw message