Page MenuHomePhabricator

Incorrect search result count and paging
Closed, ResolvedPublic

Description

Author: colin.pitts

Description:
A user reported on enwiki that searching for "Gimbutas" produces unexpected results.

The search reports 52 hits, with the pager listing 3 pages.

Page 1 displays _19_ hits (1-20 of 52):

Marija Gimbutas
Lengyel culture
Maikop culture
Riane Eisler
Yamna
Old European culture
Kurgan
Proto-Indo-European
Starhawk
Laima
Old European Script
List of Lithuanians
Dianic Wicca
Indo-European
Indo-European studies
Peter Ucko
List of archaeologists
Matriarchy
Lithuanian mythology

Page 2 displays 11 hits (21-40 of 52):
Labrys
Goddess worship
Mother goddess
Vere Gordon Childe
Slavic mythology
Gaia (mythology)
Human migration
Wicca
Camille Paglia
Goddess movement
Greek mythology

Page 3 displays the error "Sorry, there were no exact matches to your query."


Version: 1.5.x
Severity: normal
URL: http://en.wikipedia.org/wiki/Special:Search?search=Gimbutas&fulltext=Search

Details

Reference
bz2733

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:38 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz2733.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 2895 has been marked as a duplicate of this bug. ***
  • Bug 3184 has been marked as a duplicate of this bug. ***

redsnapper wrote:

Observed same behavior as originally described in #2733 with the following searches:
#1 semiconductor thermal test

found 53 hits:

page 1 showed 1-20
page 2 showed 21-40
page 3 said "no results found" effect

in other words, could not view hits 41-53

#2 semiconductor thermal

found 184 hits:

page 1 showed 1-20
page 8 showed 141-160
page 9 said "no results found" or words to that effect

NOTE that based on initial report, and case #1 reported here, one would have expected
page 9 to show results 161-180, and page 10 to say "no results found"; however, the bug
appears to have occurred at an earlier page than would have been expected. It is
difficult to imagine that all searches (based on this sample of 3 test cases) return an
exact multiple of 20 hits; it is also evident that it is not simply a matter of
truncating the list prior at the end of the last complete page - it is more likely an
error in the computation of the last page number, for instance, instead of (n DIV 20)+1
the computation is (n DIV 20+1) or some such typo.

Paging shows 20 at a time. Hence the 20.

  • This bug has been marked as a duplicate of 3679 ***