From 94ce658ab977b794b30624ff44781f61be10b06b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 10 Jun 2018 12:19:19 +0900 Subject: ハッシュタグ検索を実装 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/note.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/models') 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('notes'); Note.createIndex('uri', { sparse: true, unique: true }); Note.createIndex('userId'); +Note.createIndex('tags', { sparse: true }); Note.createIndex({ createdAt: -1 }); -- cgit v1.2.3-freya