org.apache.cocoon.components.search.components
Interface AnalyzerManager

All Known Implementing Classes:
AnalyzerManagerImpl

public interface AnalyzerManager

Analyzer Manager Component

Author:
Maisonneuve Nicolas

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 boolean exist(java.lang.String id)
          Is this analyzer exist
 org.apache.lucene.analysis.Analyzer getAnalyzer(java.lang.String id)
          Return the analyzer
 java.lang.String[] getAnalyzersID()
          Return all analyzer IDs
 void put(java.lang.String id, org.apache.lucene.analysis.Analyzer analyzer)
          Add a lucene analyser
 void remove(java.lang.String id)
          Remove a analyzer
 

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

getAnalyzer

org.apache.lucene.analysis.Analyzer getAnalyzer(java.lang.String id)
                                                throws org.apache.avalon.framework.configuration.ConfigurationException
Return the analyzer

Parameters:
id - analyzer ID
Returns:
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Analyzer

exist

boolean exist(java.lang.String id)
Is this analyzer exist

Parameters:
id - String the analyzer id
Returns:
boolean

getAnalyzersID

java.lang.String[] getAnalyzersID()
Return all analyzer IDs

Returns:
A array with all id's analyzer

put

void put(java.lang.String id,
         org.apache.lucene.analysis.Analyzer analyzer)
Add a lucene analyser

Parameters:
id - the id of the analyzer
analyzer - the analyzer to add

remove

void remove(java.lang.String id)
Remove a analyzer

Parameters:
id - the analyzer ID


Copyright $ Apache Software Foundation. All Rights Reserved.