perf: 起動時にMeiliSearchの設定を更新しないようにする (MisskeyIO#158)

インデックス設定を更新すると再インデックスタスクが走るので、MeiliSearchが重たくなるため
This commit is contained in:
まっちゃとーにゅ 2023-08-22 21:43:32 +09:00 committed by GitHub
parent daf429eb84
commit e1218de889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ export class SearchService {
) { ) {
if (meilisearch) { if (meilisearch) {
this.meilisearchNoteIndex = meilisearch.index(`${config.meilisearch!.index}---notes`); this.meilisearchNoteIndex = meilisearch.index(`${config.meilisearch!.index}---notes`);
this.meilisearchNoteIndex.updateSettings({ /*this.meilisearchNoteIndex.updateSettings({
searchableAttributes: [ searchableAttributes: [
'text', 'text',
'cw', 'cw',
@ -96,7 +96,7 @@ export class SearchService {
pagination: { pagination: {
maxTotalHits: 10000, maxTotalHits: 10000,
}, },
}); });*/
} }
if (config.meilisearch?.scope) { if (config.meilisearch?.scope) {