mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
search in mongo
This commit is contained in:
@@ -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);
|
||||
})
|
||||
});
|
||||
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user