From 9ceada782ab7cbdea195ea6c783423c6a9c096f6 Mon Sep 17 00:00:00 2001 From: Jacob Rief Date: Sat, 16 May 2020 09:47:55 +0200 Subject: [PATCH] attempt to increase the search result --- shop/search/documents.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shop/search/documents.py b/shop/search/documents.py index 375e5290c..ce9694f5d 100644 --- a/shop/search/documents.py +++ b/shop/search/documents.py @@ -25,6 +25,7 @@ class Django: model = ProductModel fields = ['id'] ignore_signals = True # performed by ProductModel.update_search_index() + queryset_pagination = 499 # let DRF do the pagination def __str__(self): return "{} {}: {}".format(self.product_type, self.id, self.product_name)