Class ElasticsearchAnalysisDefinitionRegistry
java.lang.Object
org.hibernate.search.backend.elasticsearch.analysis.model.impl.ElasticsearchAnalysisDefinitionRegistry
- All Implemented Interfaces:
AnalysisDescriptorRegistry
public final class ElasticsearchAnalysisDefinitionRegistry
extends Object
implements AnalysisDescriptorRegistry
A registry of analysis-related definitions for Elasticsearch.
This class provides access to the full mapping from names to definitions
(see getAnalyzerDefinitions() for instance).
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionOptional<? extends AnalyzerDescriptor>analyzerDescriptor(String name) Looks up the configured analyzers.Collection<? extends AnalyzerDescriptor>Optional<? extends NormalizerDescriptor>normalizerDescriptor(String name) Looks up the configured normalizers.Collection<? extends NormalizerDescriptor>
-
Constructor Details
-
ElasticsearchAnalysisDefinitionRegistry
public ElasticsearchAnalysisDefinitionRegistry() -
ElasticsearchAnalysisDefinitionRegistry
public ElasticsearchAnalysisDefinitionRegistry(ElasticsearchAnalysisDefinitionContributor contributor)
-
-
Method Details
-
getAnalyzerDefinitions
-
getNormalizerDefinitions
-
getTokenizerDefinitions
-
getTokenFilterDefinitions
-
getCharFilterDefinitions
-
analyzerDescriptor
Description copied from interface:AnalysisDescriptorRegistryLooks up the configured analyzers.- Specified by:
analyzerDescriptorin interfaceAnalysisDescriptorRegistry- Parameters:
name- The name of the analyzer.- Returns:
- An
empty optionalif there is no analyzer configured with the given name.
-
analyzerDescriptors
- Specified by:
analyzerDescriptorsin interfaceAnalysisDescriptorRegistry- Returns:
- A collection of configured analyzer descriptors.
-
normalizerDescriptor
Description copied from interface:AnalysisDescriptorRegistryLooks up the configured normalizers.- Specified by:
normalizerDescriptorin interfaceAnalysisDescriptorRegistry- Parameters:
name- The name of the normalizer.- Returns:
- An
empty optionalif there is no normalizer configured with the given name.
-
normalizerDescriptors
- Specified by:
normalizerDescriptorsin interfaceAnalysisDescriptorRegistry- Returns:
- A collection of configured normalizer descriptors.
-