Class LuceneAnalysisDefinitionRegistry
java.lang.Object
org.hibernate.search.backend.lucene.analysis.model.impl.LuceneAnalysisDefinitionRegistry
- All Implemented Interfaces:
AnalysisDescriptorRegistry
public final class LuceneAnalysisDefinitionRegistry
extends Object
implements AnalysisDescriptorRegistry
A registry of analysis-related definitions for Lucene.
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionOptional<? extends AnalyzerDescriptor>analyzerDescriptor(String name) Looks up the configured analyzers.Collection<? extends AnalyzerDescriptor>org.apache.lucene.analysis.AnalyzergetAnalyzerDefinition(String name) org.apache.lucene.analysis.Analyzerorg.apache.lucene.search.similarities.SimilarityOptional<? extends NormalizerDescriptor>normalizerDescriptor(String name) Looks up the configured normalizers.Collection<? extends NormalizerDescriptor>
-
Constructor Details
-
LuceneAnalysisDefinitionRegistry
-
-
Method Details
-
getSimilarity
public org.apache.lucene.search.similarities.Similarity getSimilarity() -
getAnalyzerDefinition
- Parameters:
name- An analyzer name- Returns:
- The analyzer definition associated with the given name,
or
nullif there isn't any.
-
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.
-
getNormalizerDefinition
- Parameters:
name- A normalizer name- Returns:
- The normalizer definition associated with the given name,
or
nullif there isn't any.
-
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.
-