org.apache.cocoon.components.search
Class SimpleLuceneXMLIndexerImpl

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.search.SimpleLuceneXMLIndexerImpl
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.Loggable, LuceneXMLIndexer, org.apache.avalon.framework.thread.ThreadSafe

public class SimpleLuceneXMLIndexerImpl
extends org.apache.avalon.framework.logger.AbstractLoggable
implements LuceneXMLIndexer, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.thread.ThreadSafe

A simple class building lucene documents from xml content.

Version:
CVS $Id: SimpleLuceneXMLIndexerImpl.java,v 1.9.2.2 2002/08/03 02:33:35 vgritsenko Exp $
Author:
Bernhard Huber

Field Summary
protected  org.apache.avalon.framework.component.ComponentManager manager
          The component manager instance
 
Fields inherited from interface org.apache.cocoon.components.search.LuceneXMLIndexer
BODY_FIELD, ROLE, UID_FIELD, URL_FIELD
 
Constructor Summary
SimpleLuceneXMLIndexerImpl()
           
 
Method Summary
 java.util.List build(java.net.URL url)
          Build lucenen documents from a URL
 void compose(org.apache.avalon.framework.component.ComponentManager manager)
          Set the current ComponentManager instance used by this Composable.
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
          configure
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected org.apache.avalon.framework.component.ComponentManager manager
The component manager instance
Since:
 
Constructor Detail

SimpleLuceneXMLIndexerImpl

public SimpleLuceneXMLIndexerImpl()
Since:
 
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
configure
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Parameters:
conf - Description of Parameter
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - Description of Exception
Since:
 

compose

public void compose(org.apache.avalon.framework.component.ComponentManager manager)
             throws org.apache.avalon.framework.component.ComponentException
Set the current ComponentManager instance used by this Composable.
Specified by:
compose in interface org.apache.avalon.framework.component.Composable
Parameters:
manager - Description of Parameter
Throws:
org.apache.avalon.framework.component.ComponentException - Description of Exception
Since:
 

build

public java.util.List build(java.net.URL url)
                     throws ProcessingException
Build lucenen documents from a URL
Specified by:
build in interface LuceneXMLIndexer
Parameters:
url - the content of this url gets indexed.
Throws:
ProcessingException - Description of Exception
Since:
 


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.