public class LuceneCustomAnalyzer
extends org.apache.lucene.analysis.DelegatingAnalyzerWrapper
addKey(someStringProperty, Mapping.TEXT.asParameter(), Parameter.of(ParameterType.TEXT_ANALYZER.getName(),
"org.apache.lucene.analysis.fr.FrenchAnalyzer"))
Custom analyzers are instantiated lazily and then cached for reuse.
| Constructor and Description |
|---|
LuceneCustomAnalyzer(String store,
KeyInformation.IndexRetriever informations,
org.apache.lucene.analysis.Analyzer.ReuseStrategy fallbackStrategy) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer |
getWrappedAnalyzer(String fieldName) |
wrapComponents, wrapReader, wrapReaderForNormalization, wrapTokenStreamForNormalizationattributeFactory, createComponents, getOffsetGap, getPositionIncrementGap, initReader, initReaderForNormalization, normalizepublic LuceneCustomAnalyzer(String store, KeyInformation.IndexRetriever informations, org.apache.lucene.analysis.Analyzer.ReuseStrategy fallbackStrategy)
protected final org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
getWrappedAnalyzer in class org.apache.lucene.analysis.AnalyzerWrapperCopyright © 2012–2024. All rights reserved.