Last modified: 2014-02-08 15:52:34 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 T24269, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22269 - Search for media not in category (similar to Mayflower Search)
Search for media not in category (similar to Mayflower Search)
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
lucene-search-2 (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
cirrus-fixed
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-25 20:09 UTC by User:Docu
Modified: 2014-02-08 15:52 UTC (History)
3 users (show)

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


Attachments

Description User:Docu 2010-01-25 20:09:44 UTC
With Mayflower search, there was the possibility to search for a term and exclude all files in a category. This helped when categorizing images at Commons.

 Sample: 

   "Tree -Category:Trees"
 
   http://toolserver.org/~tangotango/mayflower/search.php?q=Tree&ic=&ec=Trees&ft=any&sc=gt&sv=&ds=&t=n&z=12&a=3 (broken)

It would be nice if this was possible with the standard search at Commons (possibly with Lucene). 

*Mayflower search hasn't been updated and is broken for some time.
*A current workaround is to compare the list of results from search with the list from categories.
*[[Bugzilla:21317]] might be related to this.
Comment 1 Mormegil 2010-01-25 20:56:23 UTC
"Tree -incategory:Trees"

However, this has limitations, most notably it searches only the category itself, not the whole subcategory tree (therefore it does not do anything useful in this specific example; try e.g. http://commons.wikimedia.org/w/index.php?title=Special%3ASearch&search=Su-22+-incategory%3A%22Sukhoi+Su-22%22). But that would be (AFAICT/IMHO) practically an impossible task to do, anyway.
Comment 2 User:Docu 2010-01-25 23:12:31 UTC
Thanks. It seems to work when using 
 "Su-22" -incategory:"Sukhoi Su-22"
instead of
 Su-22 -incategory:"Sukhoi Su-22"

Obviously, sometimes subcategories should be checked too, but I don't think Mayflower did that either. One had to list each one separately.
Comment 3 User:Docu 2010-01-25 23:33:26 UTC
/Search result page format/

(1) To avoid that I forget about this, when searching for "Su-22", it might help 
if there was a link next the categories to exclude
results from this category, 
e.g. next to the category "Sukhoi Su-22", the link would search for
 "Su-22" -incategory:"Sukhoi Su-22"

The link could be titled something like "exclude results from this category".


(2) This might even work recursively. When continuing with 
 "Su-22" -incategory:"Sukhoi Su-22"
one could exlude further categories that get listed.
Comment 4 User:Docu 2010-02-06 10:19:15 UTC
For another approach, please see 

http://commons.wikimedia.org/wiki/MediaWiki_talk:Gadgets-definition#Search_link_on_categories
Comment 5 Bugmeister Bot 2011-08-19 19:12:41 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 6 Andre Klapper 2013-03-26 11:19:44 UTC
[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]
Comment 7 Dan Garry 2014-02-08 02:34:42 UTC
This CirrusSearch query on Commons supports this behaviour: https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&profile=default&search=Tree+-incategory%3A%22Trees%22&fulltext=Search

As we're in the process of migrating from Lucene to CirrusSearch, I'm marking this bug as RESOLVED WONTFIX.

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


Navigation
Links