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)
support.mozilla.org
Search
Tracking
(Not tracked)
VERIFIED
FIXED
1.5
People
(Reporter: jsocol, Assigned: jsocol)
References
()
Details
(Whiteboard: sumo_only)
Attachments
(2 files)
|
489 bytes,
patch
|
morgamic
:
review+
|
Details | Diff | Splinter Review |
|
1.24 KB,
patch
|
Details | Diff | Splinter Review |
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().
| Assignee | ||
Comment 1•16 years ago
|
||
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 2•16 years ago
|
||
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+
| Assignee | ||
Comment 3•16 years ago
|
||
r57076.
Also filed bug 532004 re: managing constants and configs.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 4•16 years ago
|
||
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.
| Assignee | ||
Updated•16 years ago
|
Whiteboard: sumo_only
You need to log in
before you can comment on or make changes to this bug.
Description
•