From 4bb9d7b78d3b2ec963038f8b369efc9e7aaecfe5 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Fri, 18 Oct 2024 09:43:37 +0200 Subject: [PATCH] Change synonyms index auto-expand replicas to 0-1 --- .../elasticsearch/synonyms/SynonymsManagementAPIService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/synonyms/SynonymsManagementAPIService.java b/server/src/main/java/org/elasticsearch/synonyms/SynonymsManagementAPIService.java index b14116b3d55ba..b6cb475e848e1 100644 --- a/server/src/main/java/org/elasticsearch/synonyms/SynonymsManagementAPIService.java +++ b/server/src/main/java/org/elasticsearch/synonyms/SynonymsManagementAPIService.java @@ -566,7 +566,7 @@ private static String internalSynonymRuleId(String synonymsSetId, String synonym static Settings settings() { return Settings.builder() .put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1) - .put(IndexMetadata.SETTING_AUTO_EXPAND_REPLICAS, "0-all") + .put(IndexMetadata.SETTING_AUTO_EXPAND_REPLICAS, "0-1") .put(IndexMetadata.INDEX_FORMAT_SETTING.getKey(), SYNONYMS_INDEX_FORMAT) .build(); }