Class ElasticsearchIndexSettingsProvider
java.lang.Object
io.jmix.searchelasticsearch.index.ElasticsearchIndexSettingsProvider
@Component("search_ElasticsearchIndexSettingsProvider")
public class ElasticsearchIndexSettingsProvider
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final co.elastic.clients.elasticsearch.ElasticsearchClient
protected final co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis
protected final co.elastic.clients.elasticsearch.indices.IndexSettings
protected final ElasticsearchIndexSettingsConfigurationContext
protected final List<ElasticsearchIndexSettingsConfigurer>
protected final co.elastic.clients.elasticsearch.indices.IndexSettings
protected final com.fasterxml.jackson.databind.ObjectMapper
protected final List<ElasticsearchIndexSettingsConfigurer>
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchIndexSettingsProvider
(List<ElasticsearchIndexSettingsConfigurer> configurers, co.elastic.clients.elasticsearch.ElasticsearchClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis
copyAnalysisSettings
(co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis source) protected co.elastic.clients.elasticsearch.indices.IndexSettings
copyIndexSettings
(co.elastic.clients.elasticsearch.indices.IndexSettings source) protected co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis
deserializeAnalysisSettings
(String serializedSettings) protected co.elastic.clients.elasticsearch.indices.IndexSettings
deserializeIndexSettings
(String serializedSettings) co.elastic.clients.elasticsearch.indices.IndexSettings
getSettingsForIndex
(IndexConfiguration indexConfiguration) protected boolean
isEmptyAnalysisSettings
(co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis settings) protected boolean
isEmptySettings
(co.elastic.clients.elasticsearch.indices.IndexSettings settings) protected boolean
isNewApiUsed
(Class<?> entityClass) protected void
prepareConfigurers
(List<ElasticsearchIndexSettingsConfigurer> configurers) protected String
serializeJsonpSerializable
(co.elastic.clients.json.JsonpSerializable object) protected com.fasterxml.jackson.databind.JsonNode
toJsonNode
(co.elastic.clients.json.JsonpSerializable object) protected com.fasterxml.jackson.databind.node.ObjectNode
toObjectNode
(co.elastic.clients.json.JsonpSerializable object)
-
Field Details
-
client
protected final co.elastic.clients.elasticsearch.ElasticsearchClient client -
customConfigurers
-
systemConfigurers
-
context
-
effectiveIndexSettings
-
commonIndexSettings
protected final co.elastic.clients.elasticsearch.indices.IndexSettings commonIndexSettings -
commonAnalysisSettings
protected final co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis commonAnalysisSettings -
legacyCommonSettings
protected final co.elastic.clients.elasticsearch.indices.IndexSettings legacyCommonSettings -
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
ElasticsearchIndexSettingsProvider
@Autowired public ElasticsearchIndexSettingsProvider(List<ElasticsearchIndexSettingsConfigurer> configurers, co.elastic.clients.elasticsearch.ElasticsearchClient client)
-
-
Method Details
-
getSettingsForIndex
public co.elastic.clients.elasticsearch.indices.IndexSettings getSettingsForIndex(IndexConfiguration indexConfiguration) -
configureContext
-
prepareConfigurers
-
copyIndexSettings
protected co.elastic.clients.elasticsearch.indices.IndexSettings copyIndexSettings(co.elastic.clients.elasticsearch.indices.IndexSettings source) -
copyAnalysisSettings
protected co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis copyAnalysisSettings(co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis source) -
serializeJsonpSerializable
-
deserializeIndexSettings
protected co.elastic.clients.elasticsearch.indices.IndexSettings deserializeIndexSettings(String serializedSettings) -
deserializeAnalysisSettings
protected co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis deserializeAnalysisSettings(String serializedSettings) -
toJsonNode
protected com.fasterxml.jackson.databind.JsonNode toJsonNode(co.elastic.clients.json.JsonpSerializable object) -
toObjectNode
protected com.fasterxml.jackson.databind.node.ObjectNode toObjectNode(co.elastic.clients.json.JsonpSerializable object) -
isNewApiUsed
-
isEmptySettings
protected boolean isEmptySettings(co.elastic.clients.elasticsearch.indices.IndexSettings settings) -
isEmptyAnalysisSettings
protected boolean isEmptyAnalysisSettings(co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis settings)
-