]> git.koha-community.org Git - koha.git/commit
Bug 19502: Limit pagination to first 10000 results when using ES
authorNick Clemens <nick@bywatersolutions.com>
Fri, 16 Mar 2018 11:10:37 +0000 (11:10 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 30 Jul 2018 12:12:58 +0000 (14:12 +0200)
commit2db20445a130d5632b47e97525a4c781855b6a2e
treee94bf2f72008e48256c8a38f465077b60369f42f
parented2cf32df97a75fe462a26dc6b72ce0b6f3e2db0
Bug 19502: Limit pagination to first 10000 results when using ES

This patch is to avoid hitting an error page. We should eventually make the
max number returned configurable for ES.

To test:
1 - Have Koha running ES with 10,000+ records
2 - Search for '*'
3 - Click 'Last' to view last page of results
4 - 'Cannot perform search' error
5 - Apply patch
6 - Search again
7 - View 'Last' page
8 - No error, you go to the last of 10000
9 - Note the warning above the pagination buttons

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 7bff14830df7eab4b9a6c57d017846af4f79da5e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
catalogue/search.pl
koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
koha-tmpl/opac-tmpl/bootstrap/en/includes/page-numbers.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/search/page-numbers.inc
opac/opac-search.pl