public class ScopedElasticsearchAnalyzer extends Object implements ElasticsearchAnalyzer, ScopedAnalyzer
ScopedElasticsearchAnalyzer
is a wrapper class containing all remote analyzers for a given class.
ScopedElasticsearchAnalyzer
behaves similar to ElasticsearchAnalyzerImpl
but delegates requests for name
to the underlying ElasticsearchAnalyzerImpl
depending on the requested field name.Constructor and Description |
---|
ScopedElasticsearchAnalyzer(ElasticsearchAnalyzer globalAnalyzer) |
ScopedElasticsearchAnalyzer(ElasticsearchAnalyzer globalAnalyzer,
Map<String,ElasticsearchAnalyzer> scopedAnalyzers) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getName(String fieldName) |
String |
registerDefinitions(ElasticsearchAnalysisDefinitionRegistry registry,
String fieldName) |
String |
toString() |
public ScopedElasticsearchAnalyzer(ElasticsearchAnalyzer globalAnalyzer)
public ScopedElasticsearchAnalyzer(ElasticsearchAnalyzer globalAnalyzer, Map<String,ElasticsearchAnalyzer> scopedAnalyzers)
public String getName(String fieldName)
getName
in interface RemoteAnalyzer
public String registerDefinitions(ElasticsearchAnalysisDefinitionRegistry registry, String fieldName)
registerDefinitions
in interface ElasticsearchAnalyzer
registry
- The registry analysis definitions should be registered to.fieldName
- The name of the field whose analyzer definitions should be registered.public void close()
close
in interface RemoteAnalyzer
close
in interface ScopedAnalyzer
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved