On 26/12/2012 12:56, Francesco Chicchiriccò wrote:
On 26/12/2012 13:52, Peter Sparkes wrote:
Solved:

2. Is there any way of excluding a file from being indexed on the value of one 
of its attributes?

The solution was put a xslt transformer in the sitemap - <map:match 
pattern="screen/indexer">

Oh, nice, I couldn't help with that but

1. What's the $ in <map:parameter name="include-pattern" value=".xml$"/>  for?

should just mean 'anything ending with .xml', as per Java RegEx [1].

Regards.

[1] http://docs.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html

Thank you Francesco, I should have realised that the pattern in 
name="include-pattern" meant  RexEx.


Peter


On 23/12/2012 08:59, Peter Sparkes wrote:
Hi,

I am using  a querybean to generate a Lucene index.

The sitemap pattern is ( adapted from the sample block :

<map:match pattern="create.html">
                <map:call function="indexCollection">
                    <map:parameter name="screen" value="screen/indexer"/>
                    <map:parameter name="lucene-directory" 
value="{global:lucene-directory}"/>
                    <map:parameter name="lucene-analyzer" 
value="{global:lucene-analyzer}"/>
                    <map:parameter name="lucene-merge-factor" value="10"/>
                    <map:parameter name="lucene-create-index" value="false"/>
                    <map:parameter name="lucene-content" 
value="cocoon:/prepare4indexing/"/>
                    <map:parameter name="content-directory" value="../BB/xml"/>
                    <map:parameter name="include-pattern" value=".xml$"/>
                    <map:parameter name="result-directory" value=""/>
                    <map:parameter name="result-suffix" value=""/>
                </map:call>
 </map:match>

Please:

 1. What's the $ in <map:parameter name="include-pattern" value=".xml$"/>  for?
 2. Is there any way of excluding a file from being indexed on the value of one 
of its attributes?

Thanks

Peter

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to