From 082a4df0c2fda0a9a1519a002f3acb4dcc229cbe Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Mon, 29 Jul 2024 09:52:35 +0530 Subject: [PATCH] MM-59095: Properly implement IsIndexingSync (#27738) Here we change the default liveIndexing size. https://mattermost.atlassian.net/browse/MM-59095 ```release-note Fix a bug where indexing would always be done async even after setting LiveIndexingBatchSize to 1. Now we respect the config and index synchronously if the value is set to 1. ``` Co-authored-by: Mattermost Build --- server/public/model/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/public/model/config.go b/server/public/model/config.go index a0a6413a124..11685deda31 100644 --- a/server/public/model/config.go +++ b/server/public/model/config.go @@ -203,7 +203,7 @@ const ( ElasticsearchSettingsDefaultAggregatePostsAfterDays = 365 ElasticsearchSettingsDefaultPostsAggregatorJobStartTime = "03:00" ElasticsearchSettingsDefaultIndexPrefix = "" - ElasticsearchSettingsDefaultLiveIndexingBatchSize = 1 + ElasticsearchSettingsDefaultLiveIndexingBatchSize = 10 ElasticsearchSettingsDefaultRequestTimeoutSeconds = 30 ElasticsearchSettingsDefaultBatchSize = 10000 ElasticsearchSettingsESBackend = "elasticsearch"