Package io.jmix.search.index
Class BaseIndexSettingsConfigurationContext<T,A>
java.lang.Object
io.jmix.search.index.BaseIndexSettingsConfigurationContext<T,A>
- Direct Known Subclasses:
ElasticsearchIndexSettingsConfigurationContext
,OpenSearchIndexSettingsConfigurationContext
Class provides logic of index settings and analysis configuration.
- Index settings for all indexes can be configured via
getCommonIndexSettingsBuilder()
- Index settings for specific index can be configured via
getEntityIndexSettingsBuilder(Class)
- Analysis settings for all indexes can be configured via
getCommonAnalysisBuilder()
- Analysis settings for specific index can be configured via
getEntityAnalysisBuilder(Class)
NOTE: do not call .build() method of acquired builders within your configurer.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBaseIndexSettingsConfigurationContext
(Supplier<T> indexSettingsBuilderGenerator, Supplier<A> analysisBuilderGenerator) -
Method Summary
Modifier and TypeMethodDescriptionProvides builder to configure analysis settings for all indexes.Provides builder to configure index settings for all indexes.getEntityAnalysisBuilder
(Class<?> entityClass) Provides builder to configure analysis settings for index related to provided entity.getEntityIndexSettingsBuilder
(Class<?> entityClass) Provides builder to configure index settings for index related to provided entity.
-
Field Details
-
commonIndexSettingsBuilder
-
commonAnalysisBuilder
-
specificIndexSettingsBuilders
-
specificAnalysisBuilders
-
indexSettingsBuilderGenerator
-
analysisBuilderGenerator
-
-
Constructor Details
-
BaseIndexSettingsConfigurationContext
-
-
Method Details
-
getCommonIndexSettingsBuilder
Provides builder to configure index settings for all indexes.- Returns:
- Index settings builder
-
getCommonAnalysisBuilder
Provides builder to configure analysis settings for all indexes.- Returns:
- Analysis settings builder
-
getEntityIndexSettingsBuilder
Provides builder to configure index settings for index related to provided entity.- Parameters:
entityClass
- entity class- Returns:
- Index settings builder
-
getEntityAnalysisBuilder
Provides builder to configure analysis settings for index related to provided entity.- Parameters:
entityClass
- entity class- Returns:
- Analysis settings builder
-
getAllSpecificIndexSettingsBuilders
-
getAllSpecificAnalysisBuilders
-