From 9cac293efc5433f6a2efc7ec7ae3f5244bcfbd0d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 16 Jun 2018 15:23:03 +0900 Subject: #1708 --- src/models/note.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/models/note.ts') diff --git a/src/models/note.ts b/src/models/note.ts index 461bb405a0..21ec2b3857 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -16,7 +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('tagsLower'); Note.createIndex({ createdAt: -1 }); @@ -40,6 +40,7 @@ export type INote = { poll: any; // todo text: string; tags: string[]; + tagsLower: string[]; cw: string; userId: mongo.ObjectID; appId: mongo.ObjectID; -- cgit v1.2.3-freya