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