search in mongo

This commit is contained in:
Baris Soner Usakli
2013-12-05 21:07:35 -05:00
parent 95bb838699
commit 3a7fcc2d3d
4 changed files with 41 additions and 16 deletions

View File

@@ -86,7 +86,7 @@
module.search = function(key, term, callback) {
function search(searchObj, callback) {
searchObj
.query(query = term).type('or')
.query(term).type('or')
.end(callback);
}