Opened 11 years ago
Closed 9 years ago
#59 closed defect (bug) (fixed)
Plugins search bug
Reported by: | mordauk | Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
This is a little weird.
I searched for "Easy Digital Downloads" and it came up with 17 plugins (3 pages): http://wordpress.org/plugins/search.php?q=easy+digital+downloads&sort=
At the top of page 1 is says "Showing 1-8 of 17 plugins"
Scrolling to the bottom it shows there are 3 pages.
Clicking over to page 2 and then it says "Showing 9-16 of 15 plugins".
Where'd the last 2 of the original 17 go?
Change History (16)
#4
follow-up:
↓ 8
@
11 years ago
If it works for the majority of the populace and only looks weird to us, then I'm inclined to wontfix or maybelater it. Checking with a non-admin user will tell that difference.
#5
@
11 years ago
If I manually change the ?page parameter to 3, then suddenly it shows that there are 24 plugins: http://wordpress.org/plugins/search.php?page=3&q=easy+digital+downloads&sort=
#6
@
11 years ago
Page 3 shows the same for me both logged in and logged out: http://wordpress.org/plugins/search.php?page=3&q=easy+digital+downloads&sort=
Logged out, page 1 shows Showing 1-8 of 16 plugins
, but page 2 shows Showing 9-16 of 14 plugins
#7
@
11 years ago
- Cc netweb added
Just noticed the same issue for BuddyPress, added bbPress and EDD tabulated results also, tested logged in and with not logged in incognito browser window.
I don't think I have any 'magic moderator powers' on wordpress.org
I do have 'magic moderator powers' (moderator) on bbpress.org
BuddyPress (http://buddypress.org/extend/plugins/ Viewing 1 to 10 (476 total))
Link | Results Count Displayed | Pagination Links Displayed |
/search.php?q=buddypress | Showing 1-8 of 17 plugins | 1, 2, 3, Next |
/search.php?page=2&q=buddypress | Showing 9-16 of 16 plugins | Previous, 1, 2 |
/search.php?page=3&q=buddypress | Showing 17-24 of 16 plugins | Previous, 1, 2 |
bbPress (via http://bbpress.org/plugins/ Viewing 1 to 10 (127 total))
Link | Results Count Displayed | Pagination Links Displayed |
/search.php?q=bbpress | Showing 1-8 of 17 plugins | 1, 2, 3, Next |
/search.php?page=2&q=bbpress | Showing 9-16 of 16 plugins | Previous, 1, 2 |
/search.php?page=3&q=bbpress | Showing 17-24 of 16 plugins | Previous, 1, 2 |
Easy Digital Downloads
Link | Results Count Displayed | Pagination Links Displayed |
q=easy+digital+download | Showing 1-8 of 148 plugins | 1, 2, ..., 19, Next |
q=easy+digital+downloads&sort=popular | Showing 1-8 of 148 plugins | 1, 2, ..., 19, Next |
q=easy+digital+downloads&sort=top-rated | Showing 1-8 of 148 plugins | 1, 2, ..., 19, Next |
q=easy+digital+downloads&sort=new | Showing 1-8 of 148 plugins | 1, 2, ..., 19, Next |
q=easy+digital+downloads&sort= | Showing 1-8 of 16 plugins | 1, 2, Next |
Using sort modifiers &sort=popular
, &sort=top-rated
or &sort=new
all counts work as expected.
Using q=query+term+string
or q=query+term+string&sort=
counts results are wonky!
#8
in reply to:
↑ 4
@
11 years ago
Replying to Otto42:
If it works for the majority of the populace and only looks weird to us, then I'm inclined to wontfix or maybelater it. Checking with a non-admin user will tell that difference.
I am logged out and get the bad results.
This is a pretty major bug, just sayin'.
#9
@
11 years ago
- Resolution set to fixed
- Status changed from new to closed
Found a bug in the relevance search that caused the wrong maximum to be used for the pagination. Result counts and pagination should be more consistent now, although it is not guaranteed for them to be identical at all times due to delays in the search engine indexing process.
#10
@
10 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Got a report in #wp29791 about broken pagination in plugin search, which turned out to be a WordPress.org-wide issue. Our Sphinx and BB_Query total search results are different, probably because BB also excludes closed topics but Sphinx doesn't. I'll look into adding topic_open
to the Sphinx index.
#11
@
10 years ago
Adding this because @ocean90 suggests it's related. I did a search for BuddyPress Groupblog. The search results had 4 plugins, but the number said there were 3. The first one hadn't been updated in 5 years and had the same name as the 2nd one, so maybe that was the reason for the discrepancy? But the 5 year old one really shouldn't have been displayed, I thought, since it had been more than 2 years.
#12
@
10 years ago
The 5 year old one is displayed because it's an exact match on the slug (ignoring spaces). Results older than 2 years are discoverable for exact matches.
The count is still an issue, because of the exact match check. It adds the exact match to the results but doesn't update the count properly. If you search for "buddypress groupblogs" (note the plural), then the exact match isn't there anymore and the count is correct.
Are you logged in? Try it as a normal, non-empowered user. Incognito window in chrome works fine.
The paging doesn't fully account for magic moderator powers.