|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.Analyzer org.apache.cocoon.components.search.analyzer.ConfigurableAnalyzer
public abstract class ConfigurableAnalyzer
Analyzer Wrapper to allow to configure a lucene analyzer with a XML file
Field Summary | |
---|---|
protected org.apache.lucene.analysis.Analyzer |
analyzer
the lucene analyzer |
protected AnalyzerManager |
analyzerM
the analyzer manager component |
protected org.apache.avalon.framework.logger.Logger |
logger
a logger |
Constructor Summary | |
---|---|
ConfigurableAnalyzer()
|
Method Summary | |
---|---|
protected abstract void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configure this analyzer. this method is called in |
boolean |
enableCheckFile()
is the checkFile property enable ? |
void |
enableLogging(org.apache.avalon.framework.logger.Logger log)
|
boolean |
reconfigure()
reconfigure the analyzer if the config file has changed |
void |
setAnalyerManager(AnalyzerManager analyzerM)
set the analyzerManager |
void |
setConfigFile(org.apache.excalibur.source.Source source)
Set the configuration file |
void |
setEnableCheckFile(boolean check)
Enable the check of the config file (to update the analyzer if the config file changes) when the method |
org.apache.lucene.analysis.TokenStream |
tokenStream(java.lang.String fieldName,
java.io.Reader reader)
|
Methods inherited from class org.apache.lucene.analysis.Analyzer |
---|
tokenStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.lucene.analysis.Analyzer analyzer
protected org.apache.avalon.framework.logger.Logger logger
protected AnalyzerManager analyzerM
Constructor Detail |
---|
public ConfigurableAnalyzer()
Method Detail |
---|
protected abstract void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
method
public final org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
tokenStream
in class org.apache.lucene.analysis.Analyzer
public void enableLogging(org.apache.avalon.framework.logger.Logger log)
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
public void setEnableCheckFile(boolean check)
check
- true if we want thatis called
public boolean enableCheckFile()
public boolean reconfigure() throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
public void setConfigFile(org.apache.excalibur.source.Source source) throws org.apache.avalon.framework.configuration.ConfigurationException
source
- Source configuration file
org.apache.avalon.framework.configuration.ConfigurationException
public void setAnalyerManager(AnalyzerManager analyzerM)
analyzerM
- AnalyzerManager
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |