org.apache.cocoon.components.search.analyzer
Class ConfigurableStopwordAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.cocoon.components.search.analyzer.ConfigurableAnalyzer
org.apache.cocoon.components.search.analyzer.ConfigurableStopwordAnalyzer
- All Implemented Interfaces:
- org.apache.avalon.framework.logger.LogEnabled
public class ConfigurableStopwordAnalyzer
- extends ConfigurableAnalyzer
Configurable Stopword Analyzer
Config file:
a the but
- Author:
- Nicolas Maisonneuve
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configures the analyzer. |
static java.lang.String[] |
stopTableBuilder(org.apache.avalon.framework.configuration.Configuration conf)
Build Stop Table |
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 |
ConfigurableStopwordAnalyzer
public ConfigurableStopwordAnalyzer()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Configures the analyzer.(stop words)
- Specified by:
configure
in class ConfigurableAnalyzer
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- See Also:
method
stopTableBuilder
public static java.lang.String[] stopTableBuilder(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Build Stop Table
- Parameters:
conf
- Configuration file (above the STOP_WORDS ELEMENT)
- Returns:
- String[] array with all excluded words
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
Copyright © $ Apache Software Foundation. All Rights Reserved.