limit results shown

This commit is contained in:
Anton Dyudin 2015-08-12 16:29:41 -07:00
parent a5ab44d1bb
commit b665c7678a
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ module.exports = query {name:'t', kids: sect:'j'}, recl
.flatten() .flatten()
.map(@highlight) .map(@highlight)
.filter() .filter()
.take(50)
.map(reactify) .map(reactify)
.value() .value()

View File

@ -791,7 +791,7 @@ module.exports = query({
} }
return results; return results;
}; };
})(this)).flatten().flatten().map(this.highlight).filter().map(reactify).value()); })(this)).flatten().flatten().map(this.highlight).filter().take(50).map(reactify).value());
}, },
highlight: function(e) { highlight: function(e) {
var got, res; var got, res;