fix(backend): ひとつのMeilisearchサーバーを複数のMisskeyサーバーで使えない問題を修正
This commit is contained in:
		
							parent
							
								
									16eedb86a5
								
							
						
					
					
						commit
						1cc106b8de
					
				
					 7 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -103,6 +103,7 @@ redis:
 | 
			
		|||
#  port: 7700
 | 
			
		||||
#  apiKey: ''
 | 
			
		||||
#  ssl: true
 | 
			
		||||
#  index: ''
 | 
			
		||||
 | 
			
		||||
#   ┌───────────────┐
 | 
			
		||||
#───┘ ID generation └───────────────────────────────────────────
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -103,6 +103,7 @@ redis:
 | 
			
		|||
#  port: 7700
 | 
			
		||||
#  apiKey: ''
 | 
			
		||||
#  ssl: true
 | 
			
		||||
#  index: ''
 | 
			
		||||
 | 
			
		||||
#   ┌───────────────┐
 | 
			
		||||
#───┘ ID generation └───────────────────────────────────────────
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -103,6 +103,7 @@ redis:
 | 
			
		|||
#  port: 7700
 | 
			
		||||
#  apiKey: ''
 | 
			
		||||
#  ssl: true
 | 
			
		||||
#  index: ''
 | 
			
		||||
 | 
			
		||||
#   ┌───────────────┐
 | 
			
		||||
#───┘ ID generation └───────────────────────────────────────────
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,6 +14,10 @@
 | 
			
		|||
 | 
			
		||||
## 13.12.2
 | 
			
		||||
 | 
			
		||||
## NOTE
 | 
			
		||||
Meilisearchの設定に`index`が必要になりました。値はMisskeyサーバーのホスト名にすることをお勧めします(アルファベット、ハイフン、アンダーバーのみ使用可能)。例: `misskey-io`
 | 
			
		||||
過去に作成された`notes`インデックスは、`<index名>---notes`にリネームが必要です。例: `misskey-io---notes`
 | 
			
		||||
 | 
			
		||||
### General
 | 
			
		||||
- 投稿したコンテンツのAIによる学習を軽減するオプションを追加
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -27,6 +31,7 @@
 | 
			
		|||
 | 
			
		||||
### Server
 | 
			
		||||
- センシティブワードの登録にAnd、正規表現が使用できるようになりました。
 | 
			
		||||
- Fix: ひとつのMeilisearchサーバーを複数のMisskeyサーバーで使えない問題を修正
 | 
			
		||||
 | 
			
		||||
## 13.12.1
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -124,6 +124,7 @@ redis:
 | 
			
		|||
#  port: 7700
 | 
			
		||||
#  apiKey: ''
 | 
			
		||||
#  ssl: true
 | 
			
		||||
#  index: ''
 | 
			
		||||
 | 
			
		||||
#   ┌───────────────┐
 | 
			
		||||
#───┘ ID generation └───────────────────────────────────────────
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,6 +62,7 @@ export type Source = {
 | 
			
		|||
		port: string;
 | 
			
		||||
		apiKey: string;
 | 
			
		||||
		ssl?: boolean;
 | 
			
		||||
		index: string;
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	proxy?: string;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue