models.articles.find( { $or: [ {title: query}, {body: query}]}).limit(30).sort('-date').exec(function(err, data){ if(err) { throw err; } res.render('results.jade', { locals: { page: 'results', results: data, query: query } }); });created with codestagram