From e1218de8890bd8c4ffbf9a526a3f5d02e57343c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Tue, 22 Aug 2023 21:43:32 +0900 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B5=B7=E5=8B=95=E6=99=82=E3=81=ABMei?= =?UTF-8?q?liSearch=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=82=92=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E3=81=99?= =?UTF-8?q?=E3=82=8B=20(MisskeyIO#158)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit インデックス設定を更新すると再インデックスタスクが走るので、MeiliSearchが重たくなるため --- packages/backend/src/core/SearchService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts index 88b368dd22..633c3383f6 100644 --- a/packages/backend/src/core/SearchService.ts +++ b/packages/backend/src/core/SearchService.ts @@ -75,7 +75,7 @@ export class SearchService { ) { if (meilisearch) { this.meilisearchNoteIndex = meilisearch.index(`${config.meilisearch!.index}---notes`); - this.meilisearchNoteIndex.updateSettings({ + /*this.meilisearchNoteIndex.updateSettings({ searchableAttributes: [ 'text', 'cw', @@ -96,7 +96,7 @@ export class SearchService { pagination: { maxTotalHits: 10000, }, - }); + });*/ } if (config.meilisearch?.scope) {