org.compass.core.lucene.engine
Class LuceneSearchEngineAnalyzerHelper

java.lang.Object
  extended by org.compass.core.lucene.engine.LuceneSearchEngineAnalyzerHelper
All Implemented Interfaces:
SearchEngineAnalyzerHelper

public class LuceneSearchEngineAnalyzerHelper
extends Object
implements SearchEngineAnalyzerHelper

Author:
kimchy

Constructor Summary
LuceneSearchEngineAnalyzerHelper(LuceneSearchEngine searchEngine)
           
 
Method Summary
 CompassToken[] analyze(Reader textReader)
           
 CompassToken[] analyze(String text)
           
 CompassToken[] analyze(String propertyName, Reader textReader)
           
 CompassToken[] analyze(String propertyName, String text)
           
 CompassToken analyzeSingle(String text)
           
 SearchEngineAnalyzerHelper setAnalyzer(Resource resource)
           
 SearchEngineAnalyzerHelper setAnalyzer(String analyzerName)
           
 SearchEngineAnalyzerHelper setAnalyzerByAlias(String alias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchEngineAnalyzerHelper

public LuceneSearchEngineAnalyzerHelper(LuceneSearchEngine searchEngine)
Method Detail

setAnalyzer

public SearchEngineAnalyzerHelper setAnalyzer(String analyzerName)
Specified by:
setAnalyzer in interface SearchEngineAnalyzerHelper

setAnalyzer

public SearchEngineAnalyzerHelper setAnalyzer(Resource resource)
                                       throws SearchEngineException
Specified by:
setAnalyzer in interface SearchEngineAnalyzerHelper
Throws:
SearchEngineException

setAnalyzerByAlias

public SearchEngineAnalyzerHelper setAnalyzerByAlias(String alias)
                                              throws SearchEngineException
Specified by:
setAnalyzerByAlias in interface SearchEngineAnalyzerHelper
Throws:
SearchEngineException

analyzeSingle

public CompassToken analyzeSingle(String text)
                           throws SearchEngineException
Specified by:
analyzeSingle in interface SearchEngineAnalyzerHelper
Throws:
SearchEngineException

analyze

public CompassToken[] analyze(String text)
Specified by:
analyze in interface SearchEngineAnalyzerHelper

analyze

public CompassToken[] analyze(String propertyName,
                              String text)
                       throws SearchEngineException
Specified by:
analyze in interface SearchEngineAnalyzerHelper
Throws:
SearchEngineException

analyze

public CompassToken[] analyze(Reader textReader)
                       throws SearchEngineException
Specified by:
analyze in interface SearchEngineAnalyzerHelper
Throws:
SearchEngineException

analyze

public CompassToken[] analyze(String propertyName,
                              Reader textReader)
                       throws SearchEngineException
Specified by:
analyze in interface SearchEngineAnalyzerHelper
Throws:
SearchEngineException


Copyright (c) 2004-2009 The Compass Project.