|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.lucene.engine.analyzer.LuceneAnalyzerManager
public class LuceneAnalyzerManager
Manages all the configured Lucene analyzers within Compass.
| Constructor Summary | |
|---|---|
LuceneAnalyzerManager()
|
|
| Method Summary | |
|---|---|
void |
configure(CompassSettings settings,
CompassMapping mapping,
LuceneSettings luceneSettings)
|
Analyzer |
getAnalyzer(String analyzerName)
Returns the Lucene Analyzer registed under the given name. |
Analyzer |
getAnalyzerByAlias(String alias)
Returns the Lucene Analyzer for the given alias. |
Analyzer |
getAnalyzerByAliasMustExists(String alias)
|
Analyzer |
getAnalyzerByResource(Resource resource)
Returns the Lucene Analyzer based on the give Resource. |
Analyzer |
getAnalyzerMustExist(String analyzerName)
|
Analyzer |
getDefaultAnalyzer()
Returns the default Lucene Analyzer for Compass. |
Analyzer |
getSearchAnalyzer()
Returns the search Lucene Analyzer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneAnalyzerManager()
| Method Detail |
|---|
public void configure(CompassSettings settings,
CompassMapping mapping,
LuceneSettings luceneSettings)
throws SearchEngineException
SearchEngineExceptionpublic Analyzer getDefaultAnalyzer()
Analyzer for Compass.
public Analyzer getSearchAnalyzer()
Analyzer.
public Analyzer getAnalyzer(String analyzerName)
Analyzer registed under the given name.
public Analyzer getAnalyzerByAlias(String alias)
Analyzer for the given alias. Might build a per field analyzer
if the resource has more than one analyzer against one of its properties.
public Analyzer getAnalyzerByAliasMustExists(String alias)
throws SearchEngineException
SearchEngineException
public Analyzer getAnalyzerByResource(Resource resource)
throws SearchEngineException
Analyzer based on the give Resource. Will build a specifc
per field analyzr if the given Resource has properties with different analyzers.
Will also take into account if the resource has an analyzer controller based on the analyzer
controller property value.
SearchEngineException
public Analyzer getAnalyzerMustExist(String analyzerName)
throws SearchEngineException
SearchEngineException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||