Last modified: 2010-05-15 15:33:35 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 4021 - Search only searched for complete words by default, not for subpatterns
Search only searched for complete words by default, not for subpatterns
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: 7719 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2005-11-18 10:50 UTC by Oliver Neumann
Modified: 2010-05-15 15:33 UTC (History)
1 user (show)

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


Description Oliver Neumann 2005-11-18 10:50:03 UTC
Let's say you have a document in the WIKI containign the following phrase:

"This is only a test phrase. Lets see what happens."

I now search for 'phra' which should match this document as this text is a
subpattern of a word in that document. But it doesn't match, it only matches if
I search for 'phrase'.

This is bad, because we have many documents that contain domainnames e.g. so if
someone searches for 'test' he should find pages containing
'', but currently no pages are found.

Is there a patch that supports searching for subpatterns?
Comment 1 Zigger 2005-11-18 11:29:23 UTC
I'm not sure which wiki you're using, but try wildcarding:  phra*  test*

Re-open this if you find you have a related bug or feature request.
Comment 2 Oliver Neumann 2005-11-18 11:33:34 UTC
This does not work either. We are using standard Mediawiki 1.4.0.
Comment 3 Brion Vibber 2005-11-18 19:39:18 UTC
Check the mailing list archives, you'll find discussion of a patch for the 
search to let '*' through.

Also, upgrade! 1.4.0 is old, buggy, and has security holes. No one ANYWHERE 
should be using it.
Comment 4 Sebastian Dietrich 2006-10-10 12:31:06 UTC
See regular expressions or

You cannot use regular expressions or wildcards such as ? or *. If you don't
know what that is, don't worry about it. To search for pages with the words
"boat" or "boats" search like this: "boat or boats".

This feature is definitely missing - many of my users complain about it...
Comment 5 Stefan Eichenhofer 2006-10-17 06:50:41 UTC
Yes, that´s what is really annoying. But what about wikipedia which is based 
on MediaWiki as far as I know. WikiPedia supports Wildcard-search to a 
certain extend.

see Wikipedia documentation:
You can use some limited wildcards if you really want to. See Boolean 
fulltext search for details on their use. However, wildcard searches are 
slower, so go easy on the poor server.

Does Wikipedia use a different search engine then???

Comment 6 Brion Vibber 2007-09-11 18:41:39 UTC
*** Bug 7719 has been marked as a duplicate of this bug. ***
Comment 7 Brion Vibber 2007-09-11 18:49:55 UTC
Fixed in r25794; wildcard matches now work as originally intended but never quite implemented right.

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