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 aa97777f62d42cd3e4d3e332dd8b43e797a7fe18..5c5c9d28b81b3fabb48c6c2b13842db2d637d1cf 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 1726fac6d54a02d8b4c308050cb5c12b11ea0fab..a707302d0939de92908b894536974430d60bdd29 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 d66d442a9bd1f5d733525536a4f2c84d1ae4420a..e4a8bceb02289e465b4e718bf8e92bafe6198cfc 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 def7bad83a4a7c7057a72776c334d574a4d28aa0..d4d25b889ef23e5403153a2107e7044d10e3bae1 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 095b0fe6a41750050f28bad529c6dcfe0adc4f67..8e098561143977d0a2a6cddfaa949b76d3187c61 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 095b0fe6a41750050f28bad529c6dcfe0adc4f67..8e098561143977d0a2a6cddfaa949b76d3187c61 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 095b0fe6a41750050f28bad529c6dcfe0adc4f67..8e098561143977d0a2a6cddfaa949b76d3187c61 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 838f6fece877c2aa215f6abe69a7df86ac9aafc1..e504cfa2a37f270682a3e6f193c0e0ebedf60b79 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 e3657f0d6d2e2e1f9e41ee68441db9b7ab41ff36..13a336d0bd978f9176ec8302d97a1c2e7553de01 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 e3657f0d6d2e2e1f9e41ee68441db9b7ab41ff36..13a336d0bd978f9176ec8302d97a1c2e7553de01 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 e3657f0d6d2e2e1f9e41ee68441db9b7ab41ff36..13a336d0bd978f9176ec8302d97a1c2e7553de01 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 e3657f0d6d2e2e1f9e41ee68441db9b7ab41ff36..13a336d0bd978f9176ec8302d97a1c2e7553de01 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" } } }