Class BaseIndexSettingsConfigurationContext<T,A>

java.lang.Object
io.jmix.search.index.BaseIndexSettingsConfigurationContext<T,A>
Direct Known Subclasses:
ElasticsearchIndexSettingsConfigurationContext, OpenSearchIndexSettingsConfigurationContext

public class BaseIndexSettingsConfigurationContext<T,A> extends Object
Class provides logic of index settings and analysis configuration.

NOTE: do not call .build() method of acquired builders within your configurer.

  • Field Details

    • commonIndexSettingsBuilder

      protected final T commonIndexSettingsBuilder
    • commonAnalysisBuilder

      protected final A commonAnalysisBuilder
    • specificIndexSettingsBuilders

      protected final Map<Class<?>,T> specificIndexSettingsBuilders
    • specificAnalysisBuilders

      protected final Map<Class<?>,A> specificAnalysisBuilders
    • indexSettingsBuilderGenerator

      protected final Supplier<T> indexSettingsBuilderGenerator
    • analysisBuilderGenerator

      protected final Supplier<A> analysisBuilderGenerator
  • Constructor Details

    • BaseIndexSettingsConfigurationContext

      public BaseIndexSettingsConfigurationContext(Supplier<T> indexSettingsBuilderGenerator, Supplier<A> analysisBuilderGenerator)
  • Method Details

    • getCommonIndexSettingsBuilder

      public T getCommonIndexSettingsBuilder()
      Provides builder to configure index settings for all indexes.
      Returns:
      Index settings builder
    • getCommonAnalysisBuilder

      public A getCommonAnalysisBuilder()
      Provides builder to configure analysis settings for all indexes.
      Returns:
      Analysis settings builder
    • getEntityIndexSettingsBuilder

      public T getEntityIndexSettingsBuilder(Class<?> entityClass)
      Provides builder to configure index settings for index related to provided entity.
      Parameters:
      entityClass - entity class
      Returns:
      Index settings builder
    • getEntityAnalysisBuilder

      public A getEntityAnalysisBuilder(Class<?> entityClass)
      Provides builder to configure analysis settings for index related to provided entity.
      Parameters:
      entityClass - entity class
      Returns:
      Analysis settings builder
    • getAllSpecificIndexSettingsBuilders

      public Map<Class<?>,T> getAllSpecificIndexSettingsBuilders()
    • getAllSpecificAnalysisBuilders

      public Map<Class<?>,A> getAllSpecificAnalysisBuilders()