Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B489DFA0 for ; Wed, 26 Dec 2012 12:53:04 +0000 (UTC) Received: (qmail 72599 invoked by uid 500); 26 Dec 2012 12:53:03 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 72160 invoked by uid 500); 26 Dec 2012 12:52:59 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 72126 invoked by uid 99); 26 Dec 2012 12:52:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Dec 2012 12:52:57 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.50.160.61] (HELO smtpout.karoo.kcom.com) (212.50.160.61) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Dec 2012 12:52:49 +0000 X-IronPort-AV: E=Sophos;i="4.84,356,1355097600"; d="scan'208,217";a="933817345" Received: from unknown (HELO [192.168.0.2]) ([109.176.186.248]) by smtpout.karoo.kcom.com with ESMTP; 26 Dec 2012 12:52:27 +0000 Message-ID: <50DAF309.6060400@didm.co.uk> Date: Wed, 26 Dec 2012 12:52:25 +0000 From: Peter Sparkes Reply-To: peter@didm.co.uk User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Lucene querybean - cocoon 2.11 References: <50D6C7DF.4050403@didm.co.uk> In-Reply-To: <50D6C7DF.4050403@didm.co.uk> Content-Type: multipart/alternative; boundary="------------090901030705020407050705" X-Virus-Checked: Checked by ClamAV on apache.org --------------090901030705020407050705 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 - 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 : > > > > > > > > > > > > > > > > > Please: > > 1. What's the $ in for? > 2. Is there any way of excluding a file from being indexed on the value of one of its attributes? > > Thanks > > Peter > > > > > > > --------------090901030705020407050705 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
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">

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








--------------090901030705020407050705--