Class OpenSearchIndexSettingsProvider

java.lang.Object
io.jmix.searchopensearch.index.OpenSearchIndexSettingsProvider

@Component("search_OpenSearchIndexSettingsProvider") public class OpenSearchIndexSettingsProvider extends Object
  • Field Details

  • Constructor Details

    • OpenSearchIndexSettingsProvider

      @Autowired public OpenSearchIndexSettingsProvider(List<OpenSearchIndexSettingsConfigurer> configurers, org.opensearch.client.opensearch.OpenSearchClient client)
  • Method Details

    • getSettingsForIndex

      public org.opensearch.client.opensearch.indices.IndexSettings getSettingsForIndex(IndexConfiguration indexConfiguration)
    • onMetadataGenerationRetired

      @EventListener public void onMetadataGenerationRetired(MetadataGenerationRetiredEvent event)
      Removes index settings cached for a retired metadata generation.
      Parameters:
      event - retired-generation event
    • getState

      Returns the settings state of the metadata generation pinned or current for the calling thread. The configurers are run once per generation, so they see the index configurations and entity classes of that generation.
    • configureContext

      protected OpenSearchIndexSettingsConfigurationContext configureContext()
    • prepareConfigurers

      protected void prepareConfigurers(List<OpenSearchIndexSettingsConfigurer> configurers)
    • copyIndexSettings

      protected org.opensearch.client.opensearch.indices.IndexSettings copyIndexSettings(org.opensearch.client.opensearch.indices.IndexSettings source)
    • copyAnalysisSettings

      protected org.opensearch.client.opensearch.indices.IndexSettingsAnalysis copyAnalysisSettings(org.opensearch.client.opensearch.indices.IndexSettingsAnalysis source)
    • serializeJsonpSerializable

      protected String serializeJsonpSerializable(org.opensearch.client.json.JsonpSerializable object)
    • deserializeIndexSettings

      protected org.opensearch.client.opensearch.indices.IndexSettings deserializeIndexSettings(String serializedSettings)
    • deserializeAnalysisSettings

      protected org.opensearch.client.opensearch.indices.IndexSettingsAnalysis deserializeAnalysisSettings(String serializedSettings)
    • toJsonNode

      protected com.fasterxml.jackson.databind.JsonNode toJsonNode(org.opensearch.client.json.JsonpSerializable object)
    • toObjectNode

      protected com.fasterxml.jackson.databind.node.ObjectNode toObjectNode(org.opensearch.client.json.JsonpSerializable object)
    • isNewApiUsed

      protected boolean isNewApiUsed(Class<?> entityClass)
    • isEmptySettings

      protected boolean isEmptySettings(org.opensearch.client.opensearch.indices.IndexSettings settings)
    • isEmptyAnalysisSettings

      protected boolean isEmptyAnalysisSettings(org.opensearch.client.opensearch.indices.IndexSettingsAnalysis settings)