public final class AnalyzerUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.lucene.analysis.Analyzer |
createAnalyzer(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass)
Create an Analyzer using the latest
Version. |
static org.apache.lucene.analysis.Analyzer |
createAnalyzer(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass,
org.apache.lucene.util.Version version) |
static org.apache.lucene.analysis.Analyzer |
createAnalyzer(String analyzerClassName)
Create an Analyzer using the latest
Version. |
static org.apache.lucene.analysis.Analyzer |
createAnalyzer(String analyzerClassName,
org.apache.lucene.util.Version version) |
public static org.apache.lucene.analysis.Analyzer createAnalyzer(String analyzerClassName) throws ClassNotFoundException
Version. Note, if you need to pass in
parameters to your constructor, you will need to wrap it in an implementation that does not take any argumentsanalyzerClassName - - Lucene Analyzer NameAnalyzerClassNotFoundException - - ClassNotFoundExceptionpublic static org.apache.lucene.analysis.Analyzer createAnalyzer(String analyzerClassName, org.apache.lucene.util.Version version) throws ClassNotFoundException
ClassNotFoundExceptionpublic static org.apache.lucene.analysis.Analyzer createAnalyzer(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass)
Version. Note, if you need to pass in
parameters to your constructor, you will need to wrap it in an implementation that does not take any argumentsanalyzerClass - The Analyzer Class to instantiateAnalyzerpublic static org.apache.lucene.analysis.Analyzer createAnalyzer(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass, org.apache.lucene.util.Version version)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.