You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Karthik Manimaran <mk...@gmail.com> on 2005/11/10 04:53:28 UTC

Forrest-Lucene help needed

>
> 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.
>
<us...@forrest.apache.org>

Re: Forrest-Lucene help needed

Posted by David Crossley <cr...@apache.org>.
Karthik Manimaran wrote:
> >
> > 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.

Please see the "users" mailing list. Forrest developers
participate there.

This sitemap is totally confused. Your questions are
answered on "users" list.

-David