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: 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:transform
src="../stylesheets/templates/lucene/create-lucene-index.xsl">
    <map:parameter name="realpath" value="{realpath:/}"/>
    <map:parameter name="languageId" value="{1}"/>
  </map:transform>   
  <map:serialize type="xml"/>
</map:match>

<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:generate>
  <map:serialize type="xml"/>
</map:match>
            
<map:match pattern="*/lucene-create">
  <map:generate src="cocoon:/{1}/lucene-index.xml"/>
  <map:transform type="index"/>
  <map:serialize type="xml"/>
</map:match>

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

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!

Dan



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


Mime
View raw message