You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org> on 2006/02/23 15:20:44 UTC
[jira] Closed: (COCOON-1348) [PATCH] contribution lucene block
[ http://issues.apache.org/jira/browse/COCOON-1348?page=all ]
Jean-Baptiste Quenot closed COCOON-1348:
----------------------------------------
Resolution: Invalid
Please reopen the bug if you can provide an appropriate patch, thanks.
> [PATCH] contribution lucene block
> ---------------------------------
>
> Key: COCOON-1348
> URL: http://issues.apache.org/jira/browse/COCOON-1348
> Project: Cocoon
> Type: Bug
> Components: Blocks: Lucene
> Versions: 2.2-dev (Current SVN)
> Environment: Operating System: Windows 2000
> Platform: PC
> Reporter: Nicolas Maisonneuve
> Assignee: Jean-Baptiste Quenot
> Attachments: contributionLuceneBlock1.1.zip, contribution_luceneblock.zip
>
> PATCH FOR LUCENE BLOCK
> a aother lucene transformer
> + diff patch to allow of the the official luceneIndexTransformer to integre my
> components
> Another lucene index transformer:
> * index function (update indexing or add indexing if clear attribute is true)
> * lucene field boosting
> * delete function
> This tranformer used several avalon components, but you can use them separatly :
> * AnalyzerManager: you can setup a analyzer (configurable) in the
> analyzer_manager tag in cocoon.xconf file
> * IndexManager: you can setup a index in a the /WEB-INF/index.xml (default
> location , but you can specify the location in the IndexManager component
> configuration in cocoon.xconf file)
> * Indexer (2 implementations: default (with update optimization) and
> parallel implementation for multiple cpu)
> Example of input source:
> o to Index
> <lucene:index xmlns:lucene="http://apache.org/cocoon/lucene/1.0"
> indexid="myindex"
> clear="true" (optinal attribute: clear index)
> merge-factor="100"> (optinal attribute: see lucene doc)
> <lucene:document uid="http://myhost/myfile1.data">
> <lucene:field name="tile" > sqdqsdq </lucene:field>
> <lucene:field name="description" > a text bla bal blalael
> balbal</lucene:field>
> <lucene:field name="date" >10/12/2002</lucene:field>
> </lucene:document>
> <lucene:document uid="http://myhost/myfile2.data" >
> <lucene:field name="author" boost="2" >Mr Author </lucene:field>
> (boost the field for the search (see Lucene documentation))
> <lucene:field name="langage" >french</lucene:field>
> </lucene:document>
> < /lucene:index>
> o To delete
> <lucene:delete indexid="myindex" >
> <lucene:document uid="http://myhost/myfile.data" >
> <lucene:document uid="EODOED-EFE"
> </lucene:delete>
> Example of Output Source
> <page xmlns:lucene="http://apache.org/cocoon/lucene/1.0">
> < lucene:index >
> <lucene:document uid="http://myhost/myfile1.data"/>
> <lucene:document uid="http://myhost/myfile2.data"/>
> </lucene:index>
> <lucene:delete > <lucene:document uid="http://myhost/myfile1.data"/>
> <lucene:document uid="EODOED-EFE"/>
> </lucene:delete >
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira