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

インデックス設定を更新すると再インデックスタスクが走るので、MeiliSearchが重たくなるため
This commit is contained in:
まっちゃとーにゅ 2023-08-22 21:43:32 +09:00 committed by NoriDev
parent 1217790667
commit 728e08fdf6

View file

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