From a2161ccb536fd93d7a0ba64dc1eace950172fbd0 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Wed, 1 Nov 2023 00:42:08 +0100 Subject: [PATCH] chore: remove debug line, change example.yml Set the default meilisearch scope to global --- .config/example.yml | 2 +- packages/backend/src/core/SearchService.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.config/example.yml b/.config/example.yml index 0e4f2f5a15..7cd710f250 100644 --- a/.config/example.yml +++ b/.config/example.yml @@ -124,7 +124,7 @@ redis: # apiKey: '' # ssl: true # index: '' -# scope: local +# scope: global # ┌───────────────┐ #───┘ ID generation └─────────────────────────────────────────── diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts index 1a3c5151be..6b9a6d5460 100644 --- a/packages/backend/src/core/SearchService.ts +++ b/packages/backend/src/core/SearchService.ts @@ -129,8 +129,6 @@ export class SearchService { } } - console.error('meilisearchFound'); - await this.meilisearchNoteIndex?.addDocuments([{ id: note.id, createdAt: this.idService.parse(note.id).date.getTime(),