diff --git a/pub/tree/src/js/components/SearchComponent.coffee b/pub/tree/src/js/components/SearchComponent.coffee index 1981f4e82..87f22ca7c 100644 --- a/pub/tree/src/js/components/SearchComponent.coffee +++ b/pub/tree/src/js/components/SearchComponent.coffee @@ -29,6 +29,7 @@ module.exports = query {name:'t', kids: sect:'j'}, recl .flatten() .map(@highlight) .filter() + .take(50) .map(reactify) .value() diff --git a/pub/tree/src/js/main.js b/pub/tree/src/js/main.js index 6093a49ca..de81214f7 100644 --- a/pub/tree/src/js/main.js +++ b/pub/tree/src/js/main.js @@ -791,7 +791,7 @@ module.exports = query({ } 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) { var got, res;