This commit is contained in:
syuilo 2019-04-25 07:46:39 +09:00
parent 772258b0b8
commit 0db54386cd
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
14 changed files with 147 additions and 90 deletions

View file

@ -435,11 +435,12 @@ function index(note: Note) {
if (note.text == null || config.elasticsearch == null) return;
es!.index({
index: 'misskey',
type: 'note',
index: 'misskey_note',
id: note.id.toString(),
body: {
text: note.text
text: note.text.toLowerCase(),
userId: note.userId,
userHost: note.userHost
}
});
}