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

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.ConfigurablePerFieldAnalyzer
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled

public class ConfigurablePerFieldAnalyzer
extends ConfigurableAnalyzer

Configurable PerFieldAnalyzerWrapper. Allow one analyzer per field for indexing a document (useful for multilanguage document) (@link org.apache.lucene.analysis.PerFieldAnalyzerWrapper class) A config file for this analyzer is:

Author:
Nicolas Maisonneuve

Field Summary
static java.lang.String CONFIG_DEFAULTANALYZER_ATTRIBUTE
           
static java.lang.String FIELD_ANALYZERID_ATTRIBUTE
           
static java.lang.String FIELD_ELEMENT
           
static java.lang.String FIELD_NAME_ATTRIBUTE
           
static java.lang.String FIELDS_ELEMENT
           
 
Fields inherited from class org.apache.cocoon.components.search.analyzer.ConfigurableAnalyzer
analyzer, analyzerM, logger
 
Constructor Summary
ConfigurablePerFieldAnalyzer()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
          Configure this analyzer. this method is called in
 
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
 

Field Detail

CONFIG_DEFAULTANALYZER_ATTRIBUTE

public static final java.lang.String CONFIG_DEFAULTANALYZER_ATTRIBUTE
See Also:
Constant Field Values

FIELDS_ELEMENT

public static final java.lang.String FIELDS_ELEMENT
See Also:
Constant Field Values

FIELD_ELEMENT

public static final java.lang.String FIELD_ELEMENT
See Also:
Constant Field Values

FIELD_NAME_ATTRIBUTE

public static final java.lang.String FIELD_NAME_ATTRIBUTE
See Also:
Constant Field Values

FIELD_ANALYZERID_ATTRIBUTE

public static final java.lang.String FIELD_ANALYZERID_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

ConfigurablePerFieldAnalyzer

public ConfigurablePerFieldAnalyzer()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Description copied from class: ConfigurableAnalyzer
Configure this analyzer. this method is called in

Specified by:
configure in class ConfigurableAnalyzer
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
method


Copyright $ Apache Software Foundation. All Rights Reserved.