Package org.elasticsearch.index.analysis
Class NamedAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.lucene.analysis.AnalyzerWrapper
-
- org.apache.lucene.analysis.DelegatingAnalyzerWrapper
-
- org.elasticsearch.index.analysis.NamedAnalyzer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class NamedAnalyzer extends org.apache.lucene.analysis.DelegatingAnalyzerWrapper
-
-
Constructor Summary
Constructors Constructor Description 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)
NamedAnalyzer(NamedAnalyzer analyzer, int positionIncrementGap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.apache.lucene.analysis.Analyzer
getReuseStrategy, getVersion, normalize, setVersion, tokenStream, tokenStream
-
Methods inherited from class org.apache.lucene.analysis.AnalyzerWrapper
attributeFactory, createComponents, getOffsetGap, initReader, initReaderForNormalization, normalize
-
-
-
-
Constructor Detail
-
NamedAnalyzer
public NamedAnalyzer(NamedAnalyzer analyzer, int positionIncrementGap)
-
NamedAnalyzer
public NamedAnalyzer(java.lang.String name, AnalyzerScope scope, org.apache.lucene.analysis.Analyzer analyzer)
-
NamedAnalyzer
public NamedAnalyzer(java.lang.String name, AnalyzerScope scope, org.apache.lucene.analysis.Analyzer analyzer, int positionIncrementGap)
-
-
Method Detail
-
name
public java.lang.String name()
The name of the analyzer.
-
scope
public AnalyzerScope scope()
The scope of the analyzer.
-
analyzer
public org.apache.lucene.analysis.Analyzer analyzer()
The actual analyzer.
-
getWrappedAnalyzer
protected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(java.lang.String fieldName)
- Specified by:
getWrappedAnalyzer
in classorg.apache.lucene.analysis.AnalyzerWrapper
-
getPositionIncrementGap
public int getPositionIncrementGap(java.lang.String fieldName)
- Overrides:
getPositionIncrementGap
in classorg.apache.lucene.analysis.AnalyzerWrapper
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classorg.apache.lucene.analysis.Analyzer
-
-