Sorted ZCatalog results report incorrect actual_result_count
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When some results in a search result set do not have a value set for the sort index, those results are excluded by the sortResults() method in Catalog.py. This is a longstanding behavior, and isn't entirely unreasonable. However, the result count attached to the final results (actual_
https:/
The simplest solution would be to decrement the actual_result_count variable in that except block, but I'm not sure if doing so would be entirely safe or cover all cases where this issue might arise. There are a number of code paths based on different optimization strategies here.
Fixed via decrementing actual_result_count in https:/ /github. com/zopefoundat ion/Products. ZCatalog/ commit/ 47069e51c624759 c662ae4efcf1c77 5e5d101339