Search engines to use resultPerPage param if provided
Co-authored-by: Camila Loiola <camilaibs@gmail.com> Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
@@ -71,8 +71,9 @@ export class LunrSearchEngine implements SearchEngine {
|
||||
term,
|
||||
filters,
|
||||
types,
|
||||
resultsPerPage,
|
||||
}: SearchQuery): ConcreteLunrQuery => {
|
||||
const pageSize = 25;
|
||||
const pageSize = resultsPerPage || 25;
|
||||
|
||||
return {
|
||||
lunrQueryBuilder: q => {
|
||||
|
||||
Reference in New Issue
Block a user