Last modified: 2014-01-25 07:29:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26775, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24775 - "prefix:" search operator doesn't work for titles that include spaces
"prefix:" search operator doesn't work for titles that include spaces
Status: RESOLVED DUPLICATE of bug 30125
Product: Wikimedia
Classification: Unclassified
lucene-search-2 (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Robert Stojnic
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-13 07:16 UTC by Waldir
Modified: 2014-01-25 07:29 UTC (History)
4 users (show)

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


Attachments

Description Waldir 2010-08-13 07:16:34 UTC
It seems the "prefix:" search operator doesn't deal well with spaces: it uses the correct prefix for the search, but also searches for the words of the prefix in the text of the pages, which yields undesired results.

I tried using underscores (prefix:the_prefix) and quotation marks (prefix:"the prefix"), but both returned no results. Maybe the underscore trick could be used as a workaround. That would also allow using the operator anywhere on the search, not only on the ending. Another option could be enclosing it in parens, i.e. "some search terms (prefix:a page name) more search terms"
Comment 1 Robert Stojnic 2011-02-01 11:13:24 UTC
Can you please give us the exact queries you used.
Comment 2 Waldir 2011-02-20 18:58:38 UTC
I can't remember for sure, but from my edits around the date I submitted this bug ( http://en.wikipedia.org/w/index.php?title=Special:Contributions&offset=20100813100600&limit=7&contribs=user&target=Waldir&namespace=4 ) I'd guess the search was something like "csd a7 prefix:Wikipedia:Village pump (policy)". This however seems to be working properly: http://en.wikipedia.org/wiki/Special:Search/csd_a7_prefix:Wikipedia:Village_pump_%28policy%29 (note that the underscores are only part of the url, not the "trick" I mentioned in my previous comment – which didn't work anyway – and are translated to spaces in the search query).

So I suppose this bug can be closed as WORKSFORME (but it'd be nicer to have the revid that fixed it noted here, and close it as FIXED)
Comment 3 TeleComNasSprVen 2011-08-03 18:36:44 UTC

*** This bug has been marked as a duplicate of bug 30125 ***
Comment 4 Andre Klapper 2013-03-26 11:25:31 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