Page MenuHomePhabricator

[[Special:Search]] shows "Results 1 - 2 of 2" when there is only one result
Closed, ResolvedPublic

Description

When I search for "nomedoartigo" on Portuguese Wikipedia, MediaWiki returns

Result 1 of 1

but does not show any pages in the list

In the original bug report, it returned the message

Results 1 - 2 of 2 for "nomedoartigo"

but only listed one result (pt:Paulo Lima de Brito, now deleted)

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:37 AM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz69382.
bzimport added a subscriber: Unknown Object (MLST).

Gah, I don't think it's a Cirrus bug, I think I'm still fighting an off-by-one bug in core's Special:Search. This has been frustrating :\

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Deskana lowered the priority of this task from Medium to Lowest.Dec 23 2015, 5:19 AM
Deskana moved this task from Needs triage to Search on the Discovery-ARCHIVED board.
He7d3r set Security to None.

Anyone has a test case that still works?

Change 458316 had a related patch set uploaded (by EBernhardson; owner: EBernhardson):
[mediawiki/extensions/CirrusSearch@master] Dont override SearchResultSet::numRows()

https://gerrit.wikimedia.org/r/458316

Change 458316 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] Dont override SearchResultSet::numRows()

https://gerrit.wikimedia.org/r/458316