Re: cocoon-2.1.12 - lucene indexer - cinclude
Peter Sparkes <[email protected]> Tue, 17 Mar 2015 08:53:16 +0000
| Newsgroups | gmane.text.xml.cocoon.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Jos,
The files to include come from in the sitemap
<map:parameter name="content-directory"
value="/usr/share/tomcat7/instances/wolseylodges/webapps/ROOT/B&B/xml"/>
<map:parameter name="include-pattern" value=".xml$"/>
<!-- create the index from the contents of a collection -->
<map:match pattern="create.html">
<map:call function="indexCollection">
<map:parameter name=" 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="/usr/share/tomcat7/instances/wolseylodges/webapps/ROOT/B&B/xml"/>
<map:parameter name="include-pattern" value=".xml$"/>
<map:parameter name="result-directory" value=""/>
<map:parameter name="result-suffix" value=""/>
</map:call>
</map:match>
If I make a change to a file that is correctly included and then search for it in a Lucene search
the correct file is found, so all appears to be working correctly except for the Cinclude of new files
Cheers
Peter
On 17/03/2015 08:04, Jos Snellings wrote:
> Hi Peter,
>
> What file do you want to include? (I see no src attribute?)
>
> Cheers,
> Jos
>
> On Mon, Mar 16, 2015 at 8:37 PM, Peter Sparkes <[email protected] <mailto:[email protected]>> wrote:
>
> Hi,
>
> I have a lucene application base on "samples/blocks/querybean"
>
> All worked fine for a long time, but now the cinclude in
>
> <!-- the lucene indexer -->
> <map:match pattern="screen/indexer">
> <map:generate type="jx" src="screens/lucene-indexer.xml"/>
> <map:transform type="cinclude"/>
>
> for new file result in for example:
> <lucene:document url="2947"> </lucene:document>
>
> instead of for the older files
>
> <lucene:document url="4696">
> <lodge lodge="west farm" web="true">
> etc
> </lodge>
> </lucene:document>
>
> Please,Any ideas why the " cinclude" is not properly including the new file
>
> Peter
>
>
>
>
>
> --
> Confucius said way too much ...
>