diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index 49f738a..f28b0ce 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -158,7 +158,7 @@ class Search { title = ''; genre = ''; lang = ''; - limit = 100; + limit = 50; //stuff queryFound = -1; diff --git a/server/core/DbSearcher.js b/server/core/DbSearcher.js index 7ba5e86..46f8bea 100644 --- a/server/core/DbSearcher.js +++ b/server/core/DbSearcher.js @@ -239,7 +239,8 @@ class DbSearcher { const authorIds = await this.getAuthorIds(query); const totalFound = authorIds.length; - const limit = (query.limit ? query.limit : 1000); + let limit = (query.limit ? query.limit : 100); + limit = (limit > 1000 ? 1000 : limit); const offset = (query.offset ? query.offset : 0); //выборка найденных авторов