Last modified: 2013-03-26 11:24:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 3679 - Lucene search result count should take namespace filtering into consideration
Lucene search result count should take namespace filtering into consideration
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
lucene-search-2 (Other open bugs)
unspecified
All All
: Normal trivial with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikibooks.org/wiki/Special:...
:
: 2733 5866 8311 9775 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-11 11:14 UTC by lɛʁi לערי ריינהארט
Modified: 2013-03-26 11:24 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Example search returning incorrect numbers/listing. (42.82 KB, image/jpeg)
2006-01-16 14:42 UTC, Mark Clements (HappyDog)
Details
A second example (66.32 KB, image/jpeg)
2006-01-16 14:45 UTC, Mark Clements (HappyDog)
Details

Description lɛʁi לערי ריינהארט 2005-10-11 11:14:08 UTC
Hallo!

http://en.wikibooks.org/wiki/Special:Search?search=lrm&fulltext=Search
is displaying 19 results.

It displays also:
*Results 1-20 of 29*
and links as
2 :
http://en.wikibooks.org/w/index.php?title=Special:Search&search=lrm&fulltext=Search&offset=20&limit=20
Next » :
http://en.wikibooks.org/w/index.php?title=Special:Search&search=lrm&fulltext=Search&offset=20&limit=20

Both are empty pages.

Regards Reinhardt [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2005-11-18 13:45:47 UTC
the links disapeard
It shows *Results 1-20 of 20* but there are only 9 results
Comment 2 Mark Clements (HappyDog) 2006-01-16 14:42:41 UTC
Created attachment 1312 [details]
Example search returning incorrect numbers/listing.

I don't know if this is connected, but on Wikipedia I've just tried a search,
which returns 'Results 1 to 8 of 8', but only shows a single result.  I also
received similar 'incorrect' results for a couple of other searches.  

I have attached a screenshot.

(Using firefox 1.5)
Comment 3 Mark Clements (HappyDog) 2006-01-16 14:45:43 UTC
Created attachment 1313 [details]
A second example

Here is a second example.  It shows '1 to 20 of 51', but only lists 7 results. 
The links for subsequent pages are present, but when clicked they return
"Sorry, there were no exact matches to your query."
Comment 4 Brion Vibber 2006-01-16 20:39:08 UTC
Already known issue. The total count is pre-namespace filtering. Doing namespace filtering in 
Lucene is too expensive.
Comment 5 Mark Clements (HappyDog) 2006-01-22 04:29:03 UTC
Can we change the text to something like the following:

"Showing items $1 to $2 out of $3 results found across all namespaces.  Only
showing results in the '$Namespace' namespace"

If it can't be fixed, then we should acknowledge and work round the problem
rather than ignore it.
Comment 6 Brion Vibber 2006-04-25 05:44:10 UTC
*** Bug 2733 has been marked as a duplicate of this bug. ***
Comment 7 Brion Vibber 2006-05-08 08:21:52 UTC
*** Bug 5866 has been marked as a duplicate of this bug. ***
Comment 8 Rick Block 2006-10-04 00:57:46 UTC
If the current page contains no results after namespace filtering, there seems to be no way to get to another page that might 
have results.  See, for example, http://en.wikipedia.org/w/index.php?title=Special:
Search&search=Francis+Ford+Coppola&fulltext=Search&ns10=1&ns11=1&offset=0&limit=20 .  First page has one result, 
second page has no results and no way to get to third or other pages (without simply editing the URL).  
Comment 9 Brion Vibber 2006-12-18 23:21:58 UTC
*** Bug 8311 has been marked as a duplicate of this bug. ***
Comment 10 Robert Stojnic 2007-05-03 13:04:11 UTC
*** Bug 9775 has been marked as a duplicate of this bug. ***
Comment 11 ekb87ds02 2007-05-03 13:07:11 UTC
Can't you just fetch 21 results, only show the 'next' button if the 21st result
exists and not display either that result or the total count (or use language
like 'Approximately')?
Comment 12 Brion Vibber 2007-05-03 15:35:58 UTC
21? Or 22? Or 23? Or 23,000? How many will you have to fetch to get 20 viewable
results? There's no way to predict that ahead of time.
Comment 13 Robert Stojnic 2007-05-04 15:04:45 UTC
I think ekb87ds02 was suggesting to fetch 21 viewable results, and then show 20,
and interpret the remaining one as "there are more results". This is fine,
however, with some namespace filter caching we could actually get the exact count.
Comment 14 Robert Stojnic 2007-07-13 19:03:49 UTC
Fixed in Lucene Search 2. The queries are always either filtered by cached filters, or rewritten so that they return the articles from given namespaces. So, the number of hits should always be correct. 
Comment 15 Andre Klapper 2013-03-26 11:24:16 UTC
[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links