ハッシュタグ検索を実装

This commit is contained in:
syuilo
2018-06-10 12:19:19 +09:00
parent 0360337df9
commit 94ce658ab9
12 changed files with 470 additions and 7 deletions

View File

@ -16,6 +16,7 @@ import Following from './following';
const Note = db.get<INote>('notes');
Note.createIndex('uri', { sparse: true, unique: true });
Note.createIndex('userId');
Note.createIndex('tags', { sparse: true });
Note.createIndex({
createdAt: -1
});