Package org.elasticsearch.index.analysis
Class FieldNameAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.lucene.analysis.AnalyzerWrapper
-
- org.apache.lucene.analysis.DelegatingAnalyzerWrapper
-
- org.elasticsearch.index.analysis.FieldNameAnalyzer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class FieldNameAnalyzer extends DelegatingAnalyzerWrapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description FieldNameAnalyzer(Map<String,Analyzer> analyzers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Analyzer>analyzers()protected AnalyzergetWrappedAnalyzer(String fieldName)Retrieves the wrapped Analyzer appropriate for analyzing the field with the given name-
Methods inherited from class org.apache.lucene.analysis.DelegatingAnalyzerWrapper
wrapComponents, wrapReader, wrapReaderForNormalization, wrapTokenStreamForNormalization
-
Methods inherited from class org.apache.lucene.analysis.AnalyzerWrapper
attributeFactory, createComponents, getOffsetGap, getPositionIncrementGap, initReader, initReaderForNormalization, normalize
-
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getReuseStrategy, getVersion, normalize, setVersion, tokenStream, tokenStream
-
-
-
-
Method Detail
-
getWrappedAnalyzer
protected Analyzer getWrappedAnalyzer(String fieldName)
Description copied from class:AnalyzerWrapperRetrieves the wrapped Analyzer appropriate for analyzing the field with the given name- Specified by:
getWrappedAnalyzerin classAnalyzerWrapper- Parameters:
fieldName- Name of the field which is to be analyzed- Returns:
- Analyzer for the field with the given name. Assumed to be non-null
-
-