public class NamedAnalyzer
extends org.apache.lucene.analysis.DelegatingAnalyzerWrapper
Constructor and Description |
---|
NamedAnalyzer(NamedAnalyzer analyzer,
int positionIncrementGap) |
NamedAnalyzer(java.lang.String name,
AnalyzerScope scope,
org.apache.lucene.analysis.Analyzer analyzer) |
NamedAnalyzer(java.lang.String name,
AnalyzerScope scope,
org.apache.lucene.analysis.Analyzer analyzer,
int positionIncrementGap) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Analyzer |
analyzer()
The actual analyzer.
|
void |
close() |
boolean |
equals(java.lang.Object o) |
int |
getPositionIncrementGap(java.lang.String fieldName) |
protected org.apache.lucene.analysis.Analyzer |
getWrappedAnalyzer(java.lang.String fieldName) |
int |
hashCode() |
java.lang.String |
name()
The name of the analyzer.
|
AnalyzerScope |
scope()
The scope of the analyzer.
|
java.lang.String |
toString() |
wrapComponents, wrapReader, wrapReaderForNormalization, wrapTokenStreamForNormalization
attributeFactory, createComponents, getOffsetGap, initReader, initReaderForNormalization, normalize
public NamedAnalyzer(NamedAnalyzer analyzer, int positionIncrementGap)
public NamedAnalyzer(java.lang.String name, AnalyzerScope scope, org.apache.lucene.analysis.Analyzer analyzer)
public NamedAnalyzer(java.lang.String name, AnalyzerScope scope, org.apache.lucene.analysis.Analyzer analyzer, int positionIncrementGap)
public java.lang.String name()
public AnalyzerScope scope()
public org.apache.lucene.analysis.Analyzer analyzer()
protected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(java.lang.String fieldName)
getWrappedAnalyzer
in class org.apache.lucene.analysis.AnalyzerWrapper
public int getPositionIncrementGap(java.lang.String fieldName)
getPositionIncrementGap
in class org.apache.lucene.analysis.AnalyzerWrapper
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.lucene.analysis.Analyzer