You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dan Nicolici <da...@nexource.ro> on 2005/12/19 12:11:40 UTC

Easier indexing

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?


RE: Easier indexing

Posted by Dan Nicolici <da...@nexource.ro>.
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 <da...@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


Re: Easier indexing

Posted by Antonio Fiol Bonnín <an...@gmail.com>.
You can try with xinclude or cinclude on a dynamically generated
source plus some transformations.

--
Antonio


2005/12/19, Dan Nicolici <da...@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