A simple class building lucene documents from xml content.
It has two parameters that effect the way it works:
<store-fields/>
Sets which tags in your content are stored in Lucene as fields,
during the indexing process. Allows them to be output with search hits.
<content-view-query/>
Sets the view the indexer will request for indexing content.
Example configuration (goes in cocoon.xconf)
<lucene-xml-indexer logger="core.search.lucene">
<store-fields>title, summary</store-fields>
<content-view-query>cocoon-view=search</content-view-query>
</lucene-xml-indexer>
author: Bernhard Huber author: Jeremy Quinn version: CVS $Id: SimpleLuceneXMLIndexerImpl.java 433543 2006-08-22 06:22:54Z crossley $ |