Closed Bug 532001 Opened 16 years ago Closed 16 years ago

Forum search results contain too many results per page

Categories

(support.mozilla.org :: Search, defect, P1)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jsocol, Assigned: jsocol)

References

()

Details

(Whiteboard: sumo_only)

Attachments

(2 files)

On page 2 of the results there are 13 per page, on page 3 it's 23. The offset parameter is working, that is: the 11th result on page 2 is the first result on page 3, but too many are being listed. Looks like the results/page parameter wasn't being passed to SphinxLib::format_results_forums().
Attached patch results per pageSplinter Review
This just passes SEARCH_RESULTSPERPAGE to SphinxLib::format_results_forums() as the last ($count) parameter. Paul, please let me know if that's wrong, but it looks like this is the intended behaviour and it just got overlooked.
Assignee: nobody → james
Attachment #415303 - Flags: review?(morgamic)
Comment on attachment 415303 [details] [diff] [review] results per page Looks good. Can you file a bug about managing constants and improving/centralizing configs?
Attachment #415303 - Flags: review?(morgamic) → review+
r57076. Also filed bug 532004 re: managing constants and configs.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
James: the fix you added is fine. I attached a patch for how I would do it -- modifying the section of the code that slices available results passing them to be formatted. The result is the same though, so we can keep the current code. I should note that this bug only occurs when searching where=all, i.e. merging results from kb and forums. Otherwise you never need to limit the results per page, since Sphinx returns them already paginated.
Blocks: 531934
Blocks: 532156
Whiteboard: sumo_only
Verified, FIXED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: