Closed
Bug 532511
Opened 15 years ago
Closed 15 years ago
Knowledge Base results missing after first page
Categories
(support.mozilla.org :: Search, defect)
support.mozilla.org
Search
Tracking
(Not tracked)
VERIFIED
FIXED
1.5
People
(Reporter: stephend, Assigned: jsocol)
References
()
Details
(Whiteboard: sumo_only search)
Attachments
(2 files)
707 bytes,
patch
|
morgamic
:
review+
|
Details | Diff | Splinter Review |
805 bytes,
patch
|
morgamic
:
review+
|
Details | Diff | Splinter Review |
STR: 1. Load http://support-stage.mozilla.org/search.php?q=Tastaturk%C3%BCrzel&lang=de&tags=&where=d&locale=de&advanced=1 (might need to be logged in) 2. Click "Next" or "2" Expected Results: Should go to the next page, if there are results; if not, it shouldn't show the pagination element at all Actual Results: "2" shows up but doesn't go anywhere
Assignee | ||
Comment 1•15 years ago
|
||
The result count says 15, which should continue to page 2.
Reporter | ||
Comment 2•15 years ago
|
||
Easier URL (for English speakers): https://support-stage.mozilla.org/search.php?q=facebook&lang=en&tags=&where=d&locale=en-US&advanced=1
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → james
Whiteboard: sumo_only search
Target Milestone: --- → 1.5
Assignee | ||
Comment 3•15 years ago
|
||
The offset and results/page are already accounted for in the SphinxLib constructor, making this line unnecessary.
Attachment #415740 -
Flags: review?(morgamic)
Updated•15 years ago
|
Attachment #415740 -
Flags: review?(morgamic) → review+
Comment 4•15 years ago
|
||
Comment on attachment 415740 [details] [diff] [review] remove the duplicate slicing This makes sense to me. Redundant code = no!
Assignee | ||
Comment 5•15 years ago
|
||
r57193
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: Pagination element shows up but doesn't have associated results → Knowledge Base results missing after first page
Reporter | ||
Comment 6•15 years ago
|
||
Verified FIXED on https://support-stage.mozilla.org/search.php?locale=en-US&q=facebook&tags=&lang=en&where=d&advanced=1&offset=0 and http://support-stage.mozilla.org/search.php?locale=de&q=Tastaturk%C3%BCrzel&tags=&lang=de&where=d&advanced=1&offset=10; I'll do regression testing as well.
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 7•15 years ago
|
||
Looks like simple search pagination is broken.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 8•15 years ago
|
||
The code that did the slicing was necessary for simple searches, but not for advanced document searches. I tested this with simple searches with where=f,d,all, and advanced with where=f,d. Advanced does not support where=all so it's not a meaningful case.
Attachment #415785 -
Flags: review?(morgamic)
Comment 9•15 years ago
|
||
Comment on attachment 415785 [details] [diff] [review] array_slicing on simple searches I think could just replace that new <if> condition with: --- if ($search_parameters['where'] == SEARCH_WHERE_ALL) --- Seems logically equivalent, right?
Assignee | ||
Comment 10•15 years ago
|
||
(In reply to comment #9) > (From update of attachment 415785 [details] [diff] [review]) > I think could just replace that new <if> condition with: > --- > if ($search_parameters['where'] == SEARCH_WHERE_ALL) > --- > Seems logically equivalent, right? Just tried that and it didn't work for me. I'm wary of treating where=all and advanced=1 as completely exclusive possibilities. That's a dangerous assumption.
Comment 11•15 years ago
|
||
Odd. They should be equivalent, because in validation where=all is treated as where=d for advanced search. See these lines: --- $where_array = array(SEARCH_WHERE_D, SEARCH_WHERE_F); if (!$is_advanced) $where_array[] = SEARCH_WHERE_ALL; if (!in_array($search_parameters['where'], $where_array)) if ($is_advanced) $search_parameters['where'] = SEARCH_WHERE_D; else $search_parameters['where'] = SEARCH_WHERE_ALL; --- Unfortunately I won't have time to look into this until later tomorrow. Anyway, if the patch works, that's fine.
Comment 12•15 years ago
|
||
Comment on attachment 415785 [details] [diff] [review] array_slicing on simple searches This is to get the correct # of results? If so, seems to work for me.
Attachment #415785 -
Flags: review?(morgamic) → review+
Assignee | ||
Comment 13•15 years ago
|
||
r57215. This should be returning correct results per page in both simple and advanced search.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•