org.apache.cocoon.components.search.analyzer
Class ConfigurableStopwordAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.cocoon.components.search.analyzer.ConfigurableAnalyzer
          extended by 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

Field Summary
 
Fields inherited from class org.apache.cocoon.components.search.analyzer.ConfigurableAnalyzer
analyzer, analyzerM, logger
 
Constructor Summary
ConfigurableStopwordAnalyzer()
           
 
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.cocoon.components.search.analyzer.ConfigurableAnalyzer
enableCheckFile, enableLogging, reconfigure, setAnalyerManager, setConfigFile, setEnableCheckFile, tokenStream
 
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
 

Constructor Detail

ConfigurableStopwordAnalyzer

public ConfigurableStopwordAnalyzer()
Method Detail

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.