adds index for searching across all users' tagged images

This commit is contained in:
Caleb Forbes Davis V 2011-07-13 00:22:16 -05:00
parent cc7ff3c505
commit 1580c7c5ce

View File

@ -95,6 +95,12 @@ MEDIAENTRY_INDEXES = {
# Used for showing media items matching a tag search, most recent first.
'index': [('uploader', ASCENDING),
('tags', DESCENDING),
('created', DESCENDING)]},
'tags_created': {
# Indexing media tags, and timestamp (across all users)
# This is used for a front page tag search.
'index': [('tags', DESCENDING),
('created', DESCENDING)]}}