| org.apache.cocoon.components.search.SimpleLuceneCocoonIndexerImpl
SimpleLuceneCocoonIndexerImpl | public class SimpleLuceneCocoonIndexerImpl extends AbstractLogEnabled implements LuceneCocoonIndexer,Configurable,Serviceable,Disposable(Code) | | A lucene indexer.
XML documents are indexed using lucene.
Links to XML documents are supplied by
a crawler, requesting links of documents by specifying a cocoon-view, and
HTTP protocol.
author: Bernhard Huber version: CVS $Id: SimpleLuceneCocoonIndexerImpl.java 433543 2006-08-22 06:22:54Z crossley $ |
Inner Class :static class DocumentDeletableIterator | |
Method Summary | |
public void | configure(Configuration conf) Configure this component. | public void | dispose() Dispose this component. | public void | index(Directory index, boolean create, URL base_url) index content of base_url, index content of links from base_url. | public void | service(ServiceManager manager) Set the current ServiceManager instance used by this
Serviceable . | public void | setAnalyzer(Analyzer analyzer) |
ANALYZER_CLASSNAME_CONFIG | final public static String ANALYZER_CLASSNAME_CONFIG(Code) | | configuration tagname for specifying the analyzer class
|
ANALYZER_CLASSNAME_DEFAULT | final public static String ANALYZER_CLASSNAME_DEFAULT(Code) | | configuration default analyzer class
|
DIRECTORY_CONFIG | final public static String DIRECTORY_CONFIG(Code) | | configuration tagname for specifying lucene's index directory
|
DIRECTORY_DEFAULT | final public static String DIRECTORY_DEFAULT(Code) | | configuration default directory, ie. no default.
|
MERGE_FACTOR_CONFIG | final public static String MERGE_FACTOR_CONFIG(Code) | | configuration tagname for specifying lucene's merge factor.
|
analyzer | protected Analyzer analyzer(Code) | | |
manager | protected ServiceManager manager(Code) | | The service manager for looking up components used.
|
configure | public void configure(Configuration conf) throws ConfigurationException(Code) | | Configure this component.
Parameters: conf - is the configuration exception: ConfigurationException - is thrown if configuring fails |
dispose | public void dispose()(Code) | | Dispose this component.
|
index | public void index(Directory index, boolean create, URL base_url) throws ProcessingException(Code) | | index content of base_url, index content of links from base_url.
Parameters: index - the lucene store to write the index to Parameters: create - if true create, or overwrite existing index, elseupdate existing index. Parameters: base_url - index content of base_url, and crawl through all itslinks recursivly. exception: ProcessingException - is thrown if indexing fails |
service | public void service(ServiceManager manager) throws ServiceException(Code) | | Set the current ServiceManager instance used by this
Serviceable .
Parameters: manager - used by this component exception: ServiceException - is never thrown |
setAnalyzer | public void setAnalyzer(Analyzer analyzer)(Code) | | Sets the analyzer attribute of the SimpleLuceneCocoonIndexerImpl object
Parameters: analyzer - The new analyzer value |
|
|