cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32263] New: - [PATCH] contribution lucene block
Date Tue, 16 Nov 2004 23:00:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32263>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32263

           Summary: [PATCH] contribution lucene block
           Product: Cocoon 2
           Version: Current SVN 2.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: blocks
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: nicoo_@hotmail.com


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 >

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message