cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Nicolici" <>
Subject RE: Help me please!
Date Thu, 15 Dec 2005 10:24:12 GMT
Thank you very much, Martijn, for the example!
I still have some questions if you don't mind :)

The example again:
<map:match pattern="*/lucene-index.xml">
  <map:generate src="cocoon:/listing/{1}"/>
    <map:parameter name="realpath" value="{realpath:/}"/>
    <map:parameter name="languageId" value="{1}"/>
  <map:serialize type="xml"/>

<map:match pattern="listing/*">
  <map:generate type="xpathdirectory" src="{constants:datapath}/{1}">
    <map:parameter name="depth" value="2"/>
    <map:parameter name="xpath" value="."/>
    <map:parameter name="xmlFiles" value=".xml"/>
  <map:serialize type="xml"/>
<map:match pattern="*/lucene-create">
  <map:generate src="cocoon:/{1}/lucene-index.xml"/>
  <map:transform type="index"/>
  <map:serialize type="xml"/>

To search:
<map:match pattern="*/search">
  <map:generate type="search" label="content">
    <map:parameter name="index" value="{realpath:/}/{1}"/>
  <map:serialize type="xml"/>

Please bear with me a little further. Let's see if I got this right:

1. I (or a cron job) call the "*/lucene-create" pipeline;
2. That pipeline calls the "*/lucene-index.xml" pipeline;
3. Here is where the "listing/*" pipeline gets called;
	3.1. Here I guess all my other app-relevant pipelines should get
called to issue their xml results. I see that you used the
XPathDirectoryGenerator (not quite familiar with this...). Does it generate
content from static files?
4. Create the "lucene:index" document from previous results.
5. Apply LuceneIndexTransformer on the "lucene:index" document.

The search is pretty straightforward.

Can you please insist a little on the step at 3.1?
Can I take a quick glance at "create-lucene-index.xsl"?

I think once I get these things clear I should be on my way :)

Thanks again to you and all who replied!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message