cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernhard Huber <berni_hu...@a1.net>
Subject Re: Mods to CocoonLucene
Date Fri, 15 Nov 2002 20:25:42 GMT
Hi,
just getting online, and found some time to answer your question:

ad Short Description:

SimpleLuceneCocoonIndexerImpl lookup a component with role
LuceneXMLIndexer.ROLE by default cocoon.xconf
associates SimpleLuceneXMLIndexerImpl with this role.

ad Configuration Questions:
SimpleLuceneCocoonIndexerImpl is already configurable,
making SimpleLuceneXMLIndexerImpl configurable,
check the coding in SimpleLuceneCocoonIndexerImpl, and read
the Avalon Framework Configuration API Documentation.

Changing the configuration for SimpleLuceneCocoonIndexerImpl
you modify cocooon.xconf:
<cocoon-indexer>
   <!-- change merge factor from default value 10, to 5
        see SimpleLuceneCocoonIndexerImpl configure()
   -->
   <merge-factor>5</merge-factor>

   <!-- change analyzer to German Analyzer
        see SimpleLuceneCocoonIndexerImpl configure()
   -->
 
<analyzer-classname>org.apache.lucene.analysis.de.GermanAnalyzer</analyzer-classname>
</cocoon-indexer>

Adding configuration to SimpleLuceneCocoonIndexerImpl you work
the same way as in SimpleLuceneCocoonIndexerImpl.

Adding your <title> stuff SimpleLuceneCocoonIndexerImpl may be expressed
in the configuration:

   <index-field-rules>
     <!-- sequence of index field rules is important,
       first come first server rule resolution
     -->
     <index-field-rule name="*@title" mode="Indexed,Stored"/>
     ....
     <!-- the default rule as yet used -->
     <index-field name="*@*" mode="Unstored"/>
     <index-field name="body" mode="Unstored"/>
   </index-fields>

ad Index Updating:
   hopefully will answer you later....

ad Content View Setting:
define in your sitemap:
   <map:view from-label="content" name="index-view">
    <map:serialize type="xml"/>
   </map:view>

Use index-view in indexing/crawling a new view-name, check by using url 
...?cocoon-view=index-view your setting

hope the explanation helps....

bye bernhard



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message