fix(backend): ひとつのMeilisearchサーバーを複数のMisskeyサーバーで使えない問題を修正

This commit is contained in:
syuilo
2023-05-11 21:09:29 +09:00
parent 16eedb86a5
commit 1cc106b8de
7 changed files with 11 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ export type Source = {
port: string;
apiKey: string;
ssl?: boolean;
index: string;
};
proxy?: string;

View File

@@ -68,7 +68,7 @@ export class SearchService {
private idService: IdService,
) {
if (meilisearch) {
this.meilisearchNoteIndex = meilisearch.index('notes');
this.meilisearchNoteIndex = meilisearch.index(`${config.meilisearch!.index}---notes`);
this.meilisearchNoteIndex.updateSettings({
searchableAttributes: [
'text',