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

@@ -407,10 +407,11 @@ var DebugRoute = function(app) {
var miscTests = [
function(next) {
//db.searchIndex('post', 'here is content tomato testing purple orange', 1);
/*db.searchIndex('post', 'green tomato is healthy', 2);
next();*/
db.search('post', 'tomato', function(err, result) {
next(err, result);
})
});
}
];