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 RemoteAnalyzerpublic String registerDefinitions(ElasticsearchAnalysisDefinitionRegistry registry, String fieldName)
registerDefinitions in interface ElasticsearchAnalyzerregistry - 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 RemoteAnalyzerclose in interface ScopedAnalyzerCopyright © 2006–2017 Hibernate. All rights reserved.