Page MenuHomePhabricator

Wildcard search do not work for logged-in users in some Wikipedias
Closed, ResolvedPublic

Description

In all Wikimedia projects I have tested, it is possible to use wildcards (*) in searches and get results when not logged in. But if I log in and do the same searches, I get results on some projects (English Wiktionary, Dutch Wikipedia, and Swedish Wikisource), but in others (English and Swedish Wikipedias) I see the MediaWiki:Lucenefallback message and get no results.


Version: unspecified
Severity: normal

Details

Reference
bz11313

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:57 PM
bzimport set Reference to bz11313.

rainman wrote:

Lucene doesn't let you do wildcard queries over split indexes (at least not
out of the box). When you are logged in, you probably have more than one
namespace (apart from the main) in you default search, and since indexes
are split main+rest, it needs to search more than one index.

So, this affects only large wikis that have split indexes and users that
try to do wildcard searches on more than one namespace, but still I guess
that our wildcard support needs to be reworked.

The default is probably to search multiple namespaces in most cases (eg, articles and images, or articles and categories, etc), so that needs to actually work I think. :)

rainman wrote:

From what I've seen in the logs, around 99.5% of queries are in the wiki's
default-search namespace, so I split the index conveniently according to this
(i.e. main+rest for 10 largest wikis, with exception of es.wiki), others
are just single index file so there is no problem.

But then again, i guess that those 0.5% users are most likely to use
wildcard queries and complain about it... If this is a sought-after
feature (as it seems), I could also try to make it work with arbitrary
wildcard queries (i.e. for suffixes as well) ..

Mass close WONTFIX open Lucene Search issues because extension Lucene Search was removed, and replaced by MWSearch. Please set to REOPENED if behaviour still exists with a another component, and update the domain.

Mass REOPEN after discussion with Robert. Domain: Wikimedia/lucene-search-2. Assigned to maintainer.

rainman wrote:

Been fixed for a while...