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, wrapTokenStreamForNormalization
attributeFactory, createComponents, getOffsetGap, getPositionIncrementGap, initReader, initReaderForNormalization, normalize
public 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.AnalyzerWrapper
Copyright © 2012–2024. All rights reserved.