diff --git a/src/main/java/org/codelibs/fess/es/client/FessEsClient.java b/src/main/java/org/codelibs/fess/es/client/FessEsClient.java index aa97777f6..5c5c9d28b 100644 --- a/src/main/java/org/codelibs/fess/es/client/FessEsClient.java +++ b/src/main/java/org/codelibs/fess/es/client/FessEsClient.java @@ -404,6 +404,8 @@ public class FessEsClient implements Client { } source = source.replaceAll(Pattern.quote("${fess.dictionary.path}"), dictionaryPath); source = source.replaceAll(Pattern.quote("${fess.index.codec}"), fessConfig.getIndexCodec()); + source = source.replaceAll(Pattern.quote("${fess.index.number_of_shards}"), fessConfig.getIndexNumberOfShards()); + source = source.replaceAll(Pattern.quote("${fess.index.auto_expand_replicas}"), fessConfig.getIndexAutoExpandReplicas()); final CreateIndexResponse indexResponse = client.admin().indices().prepareCreate(indexName).setSource(source, XContentType.JSON).execute() .actionGet(fessConfig.getIndexIndicesTimeout()); diff --git a/src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java b/src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java index 1726fac6d..a707302d0 100644 --- a/src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java +++ b/src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java @@ -362,6 +362,12 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction /** The key of the configuration. e.g. default */ String INDEX_CODEC = "index.codec"; + /** The key of the configuration. e.g. 5 */ + String INDEX_number_of_shards = "index.number_of_shards"; + + /** The key of the configuration. e.g. 0-1 */ + String INDEX_auto_expand_replicas = "index.auto_expand_replicas"; + /** The key of the configuration. e.g. favorite_count */ String INDEX_FIELD_favorite_count = "index.field.favorite_count"; @@ -2444,6 +2450,28 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction */ String getIndexCodec(); + /** + * Get the value for the key 'index.number_of_shards'.
+ * The value is, e.g. 5
+ * @return The value of found property. (NotNull: if not found, exception but basically no way) + */ + String getIndexNumberOfShards(); + + /** + * Get the value for the key 'index.number_of_shards' as {@link Integer}.
+ * The value is, e.g. 5
+ * @return The value of found property. (NotNull: if not found, exception but basically no way) + * @throws NumberFormatException When the property is not integer. + */ + Integer getIndexNumberOfShardsAsInteger(); + + /** + * Get the value for the key 'index.auto_expand_replicas'.
+ * The value is, e.g. 0-1
+ * @return The value of found property. (NotNull: if not found, exception but basically no way) + */ + String getIndexAutoExpandReplicas(); + /** * Get the value for the key 'index.field.favorite_count'.
* The value is, e.g. favorite_count
@@ -6249,6 +6277,18 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction return get(FessConfig.INDEX_CODEC); } + public String getIndexNumberOfShards() { + return get(FessConfig.INDEX_number_of_shards); + } + + public Integer getIndexNumberOfShardsAsInteger() { + return getAsInteger(FessConfig.INDEX_number_of_shards); + } + + public String getIndexAutoExpandReplicas() { + return get(FessConfig.INDEX_auto_expand_replicas); + } + public String getIndexFieldFavoriteCount() { return get(FessConfig.INDEX_FIELD_favorite_count); } @@ -8100,6 +8140,8 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction defaultMap.put(FessConfig.INDEXER_DATA_MAX_DOCUMENT_CACHE_SIZE, "5"); defaultMap.put(FessConfig.INDEXER_DATA_MAX_DOCUMENT_REQUEST_SIZE, "10485760"); defaultMap.put(FessConfig.INDEX_CODEC, "default"); + defaultMap.put(FessConfig.INDEX_number_of_shards, "5"); + defaultMap.put(FessConfig.INDEX_auto_expand_replicas, "0-1"); defaultMap.put(FessConfig.INDEX_FIELD_favorite_count, "favorite_count"); defaultMap.put(FessConfig.INDEX_FIELD_click_count, "click_count"); defaultMap.put(FessConfig.INDEX_FIELD_config_id, "config_id"); diff --git a/src/main/resources/fess_config.properties b/src/main/resources/fess_config.properties index d66d442a9..e4a8bceb0 100644 --- a/src/main/resources/fess_config.properties +++ b/src/main/resources/fess_config.properties @@ -207,6 +207,8 @@ indexer.data.max.document.request.size=10485760 # index setting index.codec=default +index.number_of_shards=5 +index.auto_expand_replicas=0-1 # field names index.field.favorite_count=favorite_count diff --git a/src/main/resources/fess_indices/.fess_config.access_token.json b/src/main/resources/fess_indices/.fess_config.access_token.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.access_token.json +++ b/src/main/resources/fess_indices/.fess_config.access_token.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.bad_word.json b/src/main/resources/fess_indices/.fess_config.bad_word.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.bad_word.json +++ b/src/main/resources/fess_indices/.fess_config.bad_word.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.boost_document_rule.json b/src/main/resources/fess_indices/.fess_config.boost_document_rule.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.boost_document_rule.json +++ b/src/main/resources/fess_indices/.fess_config.boost_document_rule.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.crawling_info.json b/src/main/resources/fess_indices/.fess_config.crawling_info.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.crawling_info.json +++ b/src/main/resources/fess_indices/.fess_config.crawling_info.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.crawling_info_param.json b/src/main/resources/fess_indices/.fess_config.crawling_info_param.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.crawling_info_param.json +++ b/src/main/resources/fess_indices/.fess_config.crawling_info_param.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.data_config.json b/src/main/resources/fess_indices/.fess_config.data_config.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.data_config.json +++ b/src/main/resources/fess_indices/.fess_config.data_config.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.data_config_to_label.json b/src/main/resources/fess_indices/.fess_config.data_config_to_label.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.data_config_to_label.json +++ b/src/main/resources/fess_indices/.fess_config.data_config_to_label.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.data_config_to_role.json b/src/main/resources/fess_indices/.fess_config.data_config_to_role.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.data_config_to_role.json +++ b/src/main/resources/fess_indices/.fess_config.data_config_to_role.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.duplicate_host.json b/src/main/resources/fess_indices/.fess_config.duplicate_host.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.duplicate_host.json +++ b/src/main/resources/fess_indices/.fess_config.duplicate_host.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.elevate_word.json b/src/main/resources/fess_indices/.fess_config.elevate_word.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.elevate_word.json +++ b/src/main/resources/fess_indices/.fess_config.elevate_word.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.elevate_word_to_label.json b/src/main/resources/fess_indices/.fess_config.elevate_word_to_label.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.elevate_word_to_label.json +++ b/src/main/resources/fess_indices/.fess_config.elevate_word_to_label.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.failure_url.json b/src/main/resources/fess_indices/.fess_config.failure_url.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.failure_url.json +++ b/src/main/resources/fess_indices/.fess_config.failure_url.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.file_authentication.json b/src/main/resources/fess_indices/.fess_config.file_authentication.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.file_authentication.json +++ b/src/main/resources/fess_indices/.fess_config.file_authentication.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.file_config.json b/src/main/resources/fess_indices/.fess_config.file_config.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.file_config.json +++ b/src/main/resources/fess_indices/.fess_config.file_config.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.file_config_to_label.json b/src/main/resources/fess_indices/.fess_config.file_config_to_label.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.file_config_to_label.json +++ b/src/main/resources/fess_indices/.fess_config.file_config_to_label.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.file_config_to_role.json b/src/main/resources/fess_indices/.fess_config.file_config_to_role.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.file_config_to_role.json +++ b/src/main/resources/fess_indices/.fess_config.file_config_to_role.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.job_log.json b/src/main/resources/fess_indices/.fess_config.job_log.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.job_log.json +++ b/src/main/resources/fess_indices/.fess_config.job_log.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.key_match.json b/src/main/resources/fess_indices/.fess_config.key_match.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.key_match.json +++ b/src/main/resources/fess_indices/.fess_config.key_match.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.label_to_role.json b/src/main/resources/fess_indices/.fess_config.label_to_role.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.label_to_role.json +++ b/src/main/resources/fess_indices/.fess_config.label_to_role.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.label_type.json b/src/main/resources/fess_indices/.fess_config.label_type.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.label_type.json +++ b/src/main/resources/fess_indices/.fess_config.label_type.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.path_mapping.json b/src/main/resources/fess_indices/.fess_config.path_mapping.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.path_mapping.json +++ b/src/main/resources/fess_indices/.fess_config.path_mapping.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.related_content.json b/src/main/resources/fess_indices/.fess_config.related_content.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.related_content.json +++ b/src/main/resources/fess_indices/.fess_config.related_content.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.related_query.json b/src/main/resources/fess_indices/.fess_config.related_query.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.related_query.json +++ b/src/main/resources/fess_indices/.fess_config.related_query.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.request_header.json b/src/main/resources/fess_indices/.fess_config.request_header.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.request_header.json +++ b/src/main/resources/fess_indices/.fess_config.request_header.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.role_type.json b/src/main/resources/fess_indices/.fess_config.role_type.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.role_type.json +++ b/src/main/resources/fess_indices/.fess_config.role_type.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.scheduled_job.json b/src/main/resources/fess_indices/.fess_config.scheduled_job.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.scheduled_job.json +++ b/src/main/resources/fess_indices/.fess_config.scheduled_job.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.thumbnail_queue.json b/src/main/resources/fess_indices/.fess_config.thumbnail_queue.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.thumbnail_queue.json +++ b/src/main/resources/fess_indices/.fess_config.thumbnail_queue.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.web_authentication.json b/src/main/resources/fess_indices/.fess_config.web_authentication.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.web_authentication.json +++ b/src/main/resources/fess_indices/.fess_config.web_authentication.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.web_config.json b/src/main/resources/fess_indices/.fess_config.web_config.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.web_config.json +++ b/src/main/resources/fess_indices/.fess_config.web_config.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.web_config_to_label.json b/src/main/resources/fess_indices/.fess_config.web_config_to_label.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.web_config_to_label.json +++ b/src/main/resources/fess_indices/.fess_config.web_config_to_label.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_config.web_config_to_role.json b/src/main/resources/fess_indices/.fess_config.web_config_to_role.json index def7bad83..d4d25b889 100644 --- a/src/main/resources/fess_indices/.fess_config.web_config_to_role.json +++ b/src/main/resources/fess_indices/.fess_config.web_config_to_role.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 2, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_user.group.json b/src/main/resources/fess_indices/.fess_user.group.json index 095b0fe6a..8e0985611 100644 --- a/src/main/resources/fess_indices/.fess_user.group.json +++ b/src/main/resources/fess_indices/.fess_user.group.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 5, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_user.role.json b/src/main/resources/fess_indices/.fess_user.role.json index 095b0fe6a..8e0985611 100644 --- a/src/main/resources/fess_indices/.fess_user.role.json +++ b/src/main/resources/fess_indices/.fess_user.role.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 5, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/.fess_user.user.json b/src/main/resources/fess_indices/.fess_user.user.json index 095b0fe6a..8e0985611 100644 --- a/src/main/resources/fess_indices/.fess_user.user.json +++ b/src/main/resources/fess_indices/.fess_user.user.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 5, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/fess.json b/src/main/resources/fess_indices/fess.json index 838f6fece..e504cfa2a 100644 --- a/src/main/resources/fess_indices/fess.json +++ b/src/main/resources/fess_indices/fess.json @@ -3,8 +3,9 @@ "index": { "codec": "${fess.index.codec}", "refresh_interval": "1s", - "number_of_shards": 5, - "number_of_replicas": 0 + "number_of_shards": "${fess.index.number_of_shards}", + "number_of_replicas": 0, + "auto_expand_replicas": "${fess.index.auto_expand_replicas}" }, "analysis": { "char_filter": { diff --git a/src/main/resources/fess_indices/fess_log.click_log.json b/src/main/resources/fess_indices/fess_log.click_log.json index e3657f0d6..13a336d0b 100644 --- a/src/main/resources/fess_indices/fess_log.click_log.json +++ b/src/main/resources/fess_indices/fess_log.click_log.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 10, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/fess_log.favorite_log.json b/src/main/resources/fess_indices/fess_log.favorite_log.json index e3657f0d6..13a336d0b 100644 --- a/src/main/resources/fess_indices/fess_log.favorite_log.json +++ b/src/main/resources/fess_indices/fess_log.favorite_log.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 10, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/fess_log.search_log.json b/src/main/resources/fess_indices/fess_log.search_log.json index e3657f0d6..13a336d0b 100644 --- a/src/main/resources/fess_indices/fess_log.search_log.json +++ b/src/main/resources/fess_indices/fess_log.search_log.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 10, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } } diff --git a/src/main/resources/fess_indices/fess_log.user_info.json b/src/main/resources/fess_indices/fess_log.user_info.json index e3657f0d6..13a336d0b 100644 --- a/src/main/resources/fess_indices/fess_log.user_info.json +++ b/src/main/resources/fess_indices/fess_log.user_info.json @@ -3,7 +3,8 @@ "index": { "refresh_interval": "1s", "number_of_shards": 10, - "number_of_replicas": 0 + "number_of_replicas": 0, + "auto_expand_replicas": "0-1" } } }