public final class ConfiguredAnalyzer
extends org.apache.lucene.analysis.Analyzer
Constructor and Description |
---|
ConfiguredAnalyzer()
Construct an analyzer wrapping the same class as previously passed to
ConfiguredAnalyzer(Class) . |
ConfiguredAnalyzer(java.lang.Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass)
Construct an analyzer wrapping the given class.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.lucene.analysis.TokenStream |
tokenStream(java.lang.String fieldName,
java.io.Reader reader) |
public ConfiguredAnalyzer()
ConfiguredAnalyzer(Class)
.public ConfiguredAnalyzer(java.lang.Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass)
analyzerClass
- a non-abstract class of Lucene analyzer, never null
public final org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
tokenStream
in class org.apache.lucene.analysis.Analyzer
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.lucene.analysis.Analyzer