Bug 7041 - Sort >1000 search results with sortmax parameter in zebra config file
Summary: Sort >1000 search results with sortmax parameter in zebra config file
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: 3.6
Hardware: All All
: PATCH-Sent (DO NOT USE) enhancement (vote)
Assignee: Marcel de Rooy
QA Contact: Bugs List
URL:
Keywords:
: 15331 (view as bug list)
Depends on:
Blocks: 15331
  Show dependency treegraph
 
Reported: 2011-10-17 07:31 UTC by Marcel de Rooy
Modified: 2020-01-08 22:16 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Patch (1.20 KB, patch)
2011-10-17 07:50 UTC, Marcel de Rooy
Details | Diff | Splinter Review
Bug 7041: Sort >1000 search results with sortmax parameter in zebra config file (1.21 KB, patch)
2011-11-03 23:01 UTC, Chris Cormack
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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. ***