summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-10 12:19:19 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-10 12:19:19 +0900
commit94ce658ab977b794b30624ff44781f61be10b06b (patch)
tree0752a821f740bb7bba742936765ade0476611c9b /src/models
parent2.35.3 (diff)
downloadmisskey-94ce658ab977b794b30624ff44781f61be10b06b.tar.gz
misskey-94ce658ab977b794b30624ff44781f61be10b06b.tar.bz2
misskey-94ce658ab977b794b30624ff44781f61be10b06b.zip
ハッシュタグ検索を実装
Diffstat (limited to 'src/models')
-rw-r--r--src/models/note.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/note.ts b/src/models/note.ts
index d4681b7b70..359d953735 100644
--- a/src/models/note.ts
+++ b/src/models/note.ts
@@ -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
});