Elasticsearchのインデックス名をconfigで変更できるように (#5257)
This commit is contained in:
parent
fa2c7658a0
commit
1c273a0a75
4 changed files with 6 additions and 4 deletions
|
@ -434,7 +434,7 @@ function index(note: Note) {
|
|||
if (note.text == null || config.elasticsearch == null) return;
|
||||
|
||||
es!.index({
|
||||
index: 'misskey_note',
|
||||
index: config.elasticsearch.index || 'misskey_note',
|
||||
id: note.id.toString(),
|
||||
body: {
|
||||
text: note.text.toLowerCase(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue