cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Nicolici" <dan.nicol...@nexource.ro>
Subject RE: Easier indexing
Date Mon, 19 Dec 2005 13:25:41 GMT
Thanks for the reply, Antonio.
But hey, doesn't this mean I'd have to manually code those url's one way or
another? Cause if it means that, I think it would be clearer if I stick with
the original pipeline (the one with the aggregation). Would that be so wrong
(like a "never do this" for a best practice)?

-----Original Message-----
From: Antonio Fiol BonnĂ­n [mailto:antonio.fiol@gmail.com] 
Sent: 19 decembrie 2005 13:44
To: users@cocoon.apache.org
Subject: Re: Easier indexing

You can try with xinclude or cinclude on a dynamically generated
source plus some transformations.

--
Antonio


2005/12/19, Dan Nicolici <dan.nicolici@nexource.ro>:
>
>
>
> Hi!
>
>
>
> I am indexing my website with the LuceneIndexTransformer like this:
>
>
>
>       <map:match pattern="site/indexAll">
>
>             <map:aggregate element="page">
>
>                   <map:part
> src="cocoon:/content/menu?cocoon-view=content"/>
>
>                   <map:part
> src="cocoon:/content/newspapers?cocoon-view=content"/>
>
>                   <map:part
> src="cocoon:/content/books?cocoon-view=content"/>
>
>
>             </map:aggregate>
>
>             <map:transform src="xsl/xml2lucene.xsl"/>
>
>             <map:transform type="index"/>
>
>             <map:serialize type="xml"/>
>
>       </map:match>
>
>
>
> The content pipeline is:
>
>
>
>       <map:match pattern="content/*">
>
>             <map:generate
> src="{global:template}xsp/{1}.xsp" type="serverpages">
>
>                   <map:parameter name="location"
> value="{request:contextPath}/web/site/{1}"/>
>
>             </map:generate>
>
>             <map:transform
> src="{global:template}xsl/{1}.xsl"/>
>
>             <map:serialize/>
>
>       </map:match>
>
>
>
> Can (or how can) I achieve the following:
>
>
>
>       <map:match pattern="site/indexAll">
>
>             <map:part src="cocoon:/content/*"/>
>
>             <map:transform src="xsl/xml2lucene.xsl"/>
>
>             <map:transform type="index"/>
>
>             <map:serialize type="xml"/>
>
>       </map:match>
>
>
>
> to  eliminate the writing of all possible src's that can call the content
> pipeline.
>
>
>
> Right now I think it is impossible, but am I wrong?


--
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message