Package io.jmix.search.index
Class IndexSettingsConfigurationContext
java.lang.Object
io.jmix.search.index.IndexSettingsConfigurationContext
Allows to configure Elasticsearch index settings.
Settings can be configured for all search indexes (getCommonSettingsBuilder()
)
or for index related to specific entity (getEntitySettingsBuilder(Class)
).
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.elasticsearch.common.settings.Settings.Builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.common.settings.Settings.Builder
Provides builder to set settings for all search indexes.org.elasticsearch.common.settings.Settings.Builder
getEntitySettingsBuilder
(Class<?> entityClass) Provides builder to set settings for index related to provided entity.
-
Field Details
-
commonSettingsBuilder
protected org.elasticsearch.common.settings.Settings.Builder commonSettingsBuilder -
specificSettingsBuilders
-
-
Constructor Details
-
IndexSettingsConfigurationContext
public IndexSettingsConfigurationContext()
-
-
Method Details
-
getCommonSettingsBuilder
public org.elasticsearch.common.settings.Settings.Builder getCommonSettingsBuilder()Provides builder to set settings for all search indexes.Use builder's 'put' methods to set settings values.
- Returns:
- ES index settings builder
-
getEntitySettingsBuilder
public org.elasticsearch.common.settings.Settings.Builder getEntitySettingsBuilder(Class<?> entityClass) Provides builder to set settings for index related to provided entity. Value explicitly set for specific index overrides common value.Use builder's 'put' methods to set settings values.
- Parameters:
entityClass
- entity class- Returns:
- ES index settings builder
-