|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.impl.DefaultCompassAnalyzerHelper
public class DefaultCompassAnalyzerHelper
| Constructor Summary | |
|---|---|
DefaultCompassAnalyzerHelper(SearchEngineAnalyzerHelper analyzerHelper,
InternalCompassSession session)
|
|
| Method Summary | |
|---|---|
CompassToken[] |
analyze(Reader textReader)
Analyzes the given text, returning a set of tokens. |
CompassToken[] |
analyze(String text)
Analyzes the given text, returning a set of tokens. |
CompassToken[] |
analyze(String propertyName,
Reader textReader)
Analyzes the given text, using (if needed) the anlayzer that is bound to the supplied property. |
CompassToken[] |
analyze(String propertyName,
String text)
Analyzes the given text, using (if needed) the anlayzer that is bound to the supplied property. |
CompassToken |
analyzeSingle(String text)
Analyzes the given text, returning the first token. |
CompassAnalyzerHelper |
setAnalyzer(Resource resource)
Sets the analyzer that will be used for the analysis of the text. |
CompassAnalyzerHelper |
setAnalyzer(String analyzerName)
Sets the analyzer that will be used for the analysis of the text. |
CompassAnalyzerHelper |
setAnalyzerByAlias(String alias)
Sets the analyzer that will be used for the analysis of the text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCompassAnalyzerHelper(SearchEngineAnalyzerHelper analyzerHelper,
InternalCompassSession session)
| Method Detail |
|---|
public CompassAnalyzerHelper setAnalyzer(String analyzerName)
throws CompassException
CompassAnalyzerHelper
setAnalyzer in interface CompassAnalyzerHelperanalyzerName - The analyzer name that will be used.
CompassException
public CompassAnalyzerHelper setAnalyzer(Resource resource)
throws CompassException
CompassAnalyzerHelper
setAnalyzer in interface CompassAnalyzerHelperresource - The resource to derive the analyzer from
CompassException
public CompassAnalyzerHelper setAnalyzerByAlias(String alias)
throws CompassException
CompassAnalyzerHelper
setAnalyzerByAlias in interface CompassAnalyzerHelperalias - The alias to derive the analyzer from
CompassException - If the analyzer if not found
public CompassToken analyzeSingle(String text)
throws CompassException
CompassAnalyzerHelper
analyzeSingle in interface CompassAnalyzerHelpertext - The text to analyze
CompassException
public CompassToken[] analyze(String text)
throws CompassException
CompassAnalyzerHelper
analyze in interface CompassAnalyzerHelpertext - The text to analyze
CompassException
public CompassToken[] analyze(String propertyName,
String text)
throws CompassException
CompassAnalyzerHelperCompassAnalyzerHelper.setAnalyzer(Resource)
so the analyzer can be dynamically detected from the resource.
analyze in interface CompassAnalyzerHelperpropertyName - The property name for analyze bound propertiestext - The text to analyze
CompassException
public CompassToken[] analyze(Reader textReader)
throws CompassException
CompassAnalyzerHelper
analyze in interface CompassAnalyzerHelpertextReader - The text to analyze
CompassException
public CompassToken[] analyze(String propertyName,
Reader textReader)
throws CompassException
CompassAnalyzerHelperCompassAnalyzerHelper.setAnalyzer(Resource)
so the analyzer can be dynamically detected from the resource.
analyze in interface CompassAnalyzerHelperpropertyName - The property name for analyze bound propertiestextReader - The text to analyze
CompassException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||