Node.js based forum software built for the modern web
create index on score field
barisusakli487793e692e4
diff --git a/src/database/mongo.js b/src/database/mongo.jsindex a9f765e1dd..97050251a9 100644--- a/src/database/mongo.js+++ b/src/database/mongo.js@@ -81,7 +81,7 @@}function createIndices() {- db.collection('objects').ensureIndex({_key :1}, {background:true}, function(err) {+ db.collection('objects').ensureIndex({_key :1, score: -1}, {background:true}, function(err) {if(err) {winston.error('Error creating index ' + err.message);}