Page MenuHomePhabricator

Search should pay more attention to the number of results
Closed, ResolvedPublic

Description

Author: justin-mediazilla

Description:
[bounced here from https://bugzilla.mozilla.org/show_bug.cgi?id=308053]

If I search for some word, above the results (and below) are text/links to view
the previous 20, the next 20, and for setting the per-page results to
20/50/100/250/500. That's useful for big searches, but for small searches it's
just clutter. Basically, when all the available results are shown these links
are useless.

For example, a search for "foobar" on the http://developer.mozilla.org/ wiki
currently returns 3 results. There's no reason to include the "previous 20" text
(on the first page?!), or the "next 20" link (there's only 3 total!).

I also don't really see any point in offering a results-per-page value greater
than the number of results. If the search returns 30 results, only the "20" and
"50" options would be useful. In fact, just labeling the maximum value as "All"
would seem a bit clearer. [unless this is sticky, in which case it would need to
be a specific number]


Version: 1.5.x
Severity: normal
URL: http://developer.mozilla.org/en/docs/Special:Search?search=foobar&go=Go

Details

Reference
bz3431

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:48 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz3431.
bzimport added a subscriber: Unknown Object (MLST).

Fixed in r21866.

NOTE: Mysqlsearch do not give us the number of total results, so we are not really sure if the show results are really the last ones. That should be enough though.

I find disabling the 20 | 50 | 100 .... links would be disturbing, I have
not disabled them.