Class LuceneAnalyzerCombinationProvider
java.lang.Object
com.apple.foundationdb.record.lucene.LuceneAnalyzerCombinationProvider
Provide a combination of analyzers for multiple fields of one Lucene index.
The combinations of analyzers for index time and query time are potentially different.
The default analyzer chooser is used for all fields of one Lucene index except the fields which has overrides in the analyzer chooser per field mapping.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLuceneAnalyzerCombinationProvider
(AnalyzerChooser defaultIndexAnalyzerChooser, AnalyzerChooser defaultQueryAnalyzerChooser, Map<String, AnalyzerChooser> indexAnalyzerChooserPerFieldOverride, Map<String, AnalyzerChooser> queryAnalyzerChooserPerFieldOverride) -
Method Summary
Modifier and TypeMethodDescriptionprovideIndexAnalyzer
(String text) provideIndexAnalyzer
(List<String> texts) provideQueryAnalyzer
(String text) provideQueryAnalyzer
(List<String> texts)
-
Field Details
-
DELINEATOR_BETWEEN_KEY_AND_VALUE
- See Also:
-
DELINEATOR_BETWEEN_KEY_VALUE_PAIRS
- See Also:
-
-
Constructor Details
-
LuceneAnalyzerCombinationProvider
public LuceneAnalyzerCombinationProvider(@Nonnull AnalyzerChooser defaultIndexAnalyzerChooser, @Nonnull AnalyzerChooser defaultQueryAnalyzerChooser, @Nullable Map<String, AnalyzerChooser> indexAnalyzerChooserPerFieldOverride, @Nullable Map<String, AnalyzerChooser> queryAnalyzerChooserPerFieldOverride)
-
-
Method Details
-
provideIndexAnalyzer
-
provideIndexAnalyzer
-
provideQueryAnalyzer
-
provideQueryAnalyzer
-