Class IndexSettingsConfigurationContext

java.lang.Object
io.jmix.search.index.IndexSettingsConfigurationContext

public class IndexSettingsConfigurationContext extends Object
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 Details

    • commonSettingsBuilder

      protected org.elasticsearch.common.settings.Settings.Builder commonSettingsBuilder
    • specificSettingsBuilders

      protected Map<Class<?>,org.elasticsearch.common.settings.Settings.Builder> 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