Bug 7041

Summary: Sort >1000 search results with sortmax parameter in zebra config file
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: SearchingAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: barton, chris, koha.sekjal, paul.poulain
Version: 3.6   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 15331    
Attachments: Patch
Bug 7041: Sort >1000 search results with sortmax parameter in zebra config file

Description Marcel de Rooy 2011-10-17 07:31:20 UTC
By default, zebra does not sort more than 1000 records (search results). You can increase this number by adding the sortmax parameter in zebra-biblios.cfg.

Putting this value in Koha's zebra config file will make this default value visible and make it easier to increase it if one prefers that.

This patch therefore adds the default of 1000 to zebra-biblios.cfg. Does not change any Koha/Zebra behavior.

If you want to test it, look for a search in your catalog with >1000 results. Look at the order of the records. Now apply the patch and copy the zebra-biblios.cfg to your zebra directory. Increase sortmax, reindex and search again.
If you increased sortmax above the number of hits, you should see a difference in sort order now.
Comment 1 Marcel de Rooy 2011-10-17 07:50:13 UTC Comment hidden (obsolete)
Comment 2 Paul Poulain 2011-10-24 11:38:19 UTC
Updating Version : This ENH will be for Koha 3.8
Comment 3 Paul Poulain 2011-10-25 15:05:56 UTC
Bug versionned for master. entries will be made against rel_3_8 once the patch has been applied (see thread about that on koha-devel yesterday)
Comment 4 Chris Cormack 2011-11-03 23:01:56 UTC
Created attachment 6170 [details] [review]
Bug 7041: Sort >1000 search results with sortmax parameter in zebra config file

By default, zebra does not sort more than 1000 records (search results). You
can increase this number by adding the sortmax parameter in zebra-biblios.cfg.

Putting this value in Koha's zebra config file will make this default value
visible and make it easier to increase it if one prefers that.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Comment 5 Ian Walls 2011-11-30 14:21:52 UTC
Adds a valid zebra param to the config, set explicitly to the default (so no change in default behaviour is created).  The presence of this param, and the comments, provide the user with more flexibility in their Zebra install.

Marking as Passed QA
Comment 6 Paul Poulain 2011-12-03 07:16:59 UTC
patch pushed, please test
Comment 7 Katrin Fischer 2020-01-08 22:16:05 UTC
*** Bug 15331 has been marked as a duplicate of this bug. ***