Skip to content

Commit

Permalink
perf: 起動時にMeiliSearchの設定を更新しないようにする (#158)
Browse files Browse the repository at this point in the history
インデックス設定を更新すると再インデックスタスクが走るので、MeiliSearchが重たくなるため
  • Loading branch information
u1-liquid authored Aug 22, 2023
1 parent daf429e commit e1218de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/core/SearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -96,7 +96,7 @@ export class SearchService {
pagination: {
maxTotalHits: 10000,
},
});
});*/
}

if (config.meilisearch?.scope) {
Expand Down

0 comments on commit e1218de

Please sign in to comment.