diff --git a/quesma/quesma/config/config_v2.go b/quesma/quesma/config/config_v2.go index 76750e597..bdb83f6cf 100644 --- a/quesma/quesma/config/config_v2.go +++ b/quesma/quesma/config/config_v2.go @@ -626,6 +626,9 @@ func (c *QuesmaNewConfiguration) TranslateToLegacyConfig() QuesmaConfiguration { } else { errAcc = multierror.Append(errAcc, fmt.Errorf("invalid target %s in configuration of index %s", target, indexName)) } + if _, exists := target.properties["useCommonTable"]; exists { + processedConfig.UseCommonTable = true + } } } // fallback to old style, simplified target configuration @@ -785,6 +788,9 @@ func (c *QuesmaNewConfiguration) TranslateToLegacyConfig() QuesmaConfiguration { } else { errAcc = multierror.Append(errAcc, fmt.Errorf("invalid target %s in configuration of index %s", target, indexName)) } + if _, exists := target.properties["useCommonTable"]; exists { + processedConfig.UseCommonTable = true + } } } // fallback to old style, simplified target configuration @@ -842,6 +848,9 @@ func (c *QuesmaNewConfiguration) TranslateToLegacyConfig() QuesmaConfiguration { } else { errAcc = multierror.Append(errAcc, fmt.Errorf("invalid target %s in configuration of index %s", target, indexName)) } + if _, exists := target.properties["useCommonTable"]; exists { + processedConfig.UseCommonTable = true + } } } // fallback to old style, simplified target configuration