Last modified: 2013-09-20 15:26:27 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 T4285, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2285 - Restrict search by category, or set of categories (e.g. range of date categories)
Restrict search by category, or set of categories (e.g. range of date categor...
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Low enhancement with 12 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 4286 12037 31028 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-01 17:50 UTC by Kevin Baas
Modified: 2013-09-20 15:26 UTC (History)
11 users (show)

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


Attachments

Description Kevin Baas 2005-06-01 17:50:03 UTC
possibly a search _page_

advanced options would be:

*specify categories
*specify date range (for wikinews)
Comment 1 Rowan Collins [IMSoP] 2005-06-01 17:58:41 UTC
We have a search page, it's called [[Special:Search]]; but yes, it could be
enhanced. Editting summary of this bug to reflect exact feature requested.
Comment 2 Maxim Razin 2005-09-28 08:12:23 UTC
Maybe some kind of intersection of categories should be implemented.   For now
we ought to have categories like "French physicists" which must be a simple
intersection of categories "France" and "Physicists".  And if someone would seek
for e.g. a list of French physicists of XIX century he has no choice.
Comment 3 Brion Vibber 2006-01-22 04:26:08 UTC
Restored bug from flood attack.
Comment 4 Melancholie 2006-03-15 04:20:24 UTC
See http://wikicities.com/index.php?title=Special:Search&adv=1 
(section #Metadata) to see how the search by category could work.
See bug 5244 for the multi category search.
Comment 5 Rémi Kaupp 2007-07-13 18:21:59 UTC
It seems that this bug can be closed, as Lucene Search 2.0 does the job with the "incategory:" search ? 

Now another super-extra-wonderful idea would be to create a search page on which you can intersect two categories, a bit like on http://tools.wikimedia.de/~bayo/intercat.php. Even just having a couple of inputboxes in which you enter two category names (which result in a search like "incategory:A AND incategory:B") would be great.
Comment 6 Robert Stojnic 2007-07-13 18:37:22 UTC
Well, no, ls2 doesn't do this. The incategory keyword is there, and (some) categories are in the index, but the current way of maintaining them is not very good. Especially if categories are within templates, or embedded in some other nontrivial way. That's why I haven't announced the category search in the last release note on wikitech-l. 

So, I would say this bug is still open. 
Comment 7 Raimond Spekking 2007-11-19 16:50:25 UTC
*** Bug 12037 has been marked as a duplicate of this bug. ***
Comment 8 Nemo 2009-04-15 18:08:15 UTC
That would be *very* useful, also in Wikisource, which could be used as a real thesaurus, e.g. to search only texts written in a certain century (if the pages are in an appropriate category). 
Comment 9 Robert Stojnic 2009-04-15 22:09:26 UTC
Actually, since century categories on wikisource are added in-text, you can already do it, try:

http://en.wikisource.org/w/index.php?search=incategory%3A%225th+century+works%22&ns0=1&title=Special%3ASearch&fulltext=Search&fulltext=Search

This won't do subcategories though (it handles categories more like tags)
Comment 11 Nemo 2009-04-15 22:26:10 UTC
(In reply to comment #9)
> This won't do subcategories though (it handles categories more like tags)

And it doesn't seem to find all pages, neither: compare http://it.wikisource.org/wiki/Categoria:Opere_letterarie_del_XVI_secolo (440 elements) and http://it.wikisource.org/w/index.php?title=Speciale:Ricerca&limit=20&offset=60&ns0=1&redirs=1&search=%22Opere+letterarie+del+XVI+secolo%22 (69 results) or http://it.wikisource.org/w/index.php?search=incategory%3A%22Opere+letterarie+del+XVI+secolo%22&ns0=1&title=Speciale%3ARicerca&fulltext=Search&fulltext=Ricerca (56 results). 
That's because of this, I suppose:

(In reply to comment #6)
> categories are within templates, or embedded in some
> other nontrivial way. 
Comment 12 Cenarium 2009-07-02 00:23:18 UTC
The +incategory feature should also ignore nowikified categories.
Comment 13 Brian McNeil 2009-08-12 15:42:36 UTC
This issue has been brought up on Wikinews, there are several items to consider.

*Ability to search for articles in categories
*Ability to do intersections ( catA and catB )
*Ability to search articles not in a specific category
*Ability to search articles in a category and all sub-categories

Comment 14 iain.macdonald 2009-08-12 15:46:19 UTC
In addition to just within certain cats, for Wikinews it would be very useful also to exclude certain cats, see http://en.wikinews.org/wiki/Wikinews:Water_cooler/proposals#Categorisation_issues
Comment 15 Cenarium 2009-11-28 19:18:34 UTC
Just a note that if the incategory feature or another is made to also detect pages indirectly categorized, that is, through transclusion, there should also be a feature which detects pages directly in the category - what incategory does now, as we sometimes need to see pages that are directly, or indirectly, in the category.
Comment 16 Max Semenik 2010-06-27 07:38:58 UTC
*** Bug 4286 has been marked as a duplicate of this bug. ***
Comment 17 Nemo 2013-08-29 16:36:52 UTC
This bug is in MediaWiki core product, but maybe it is of interest that the new CirrusSearch extension improves category filtering a lot: http://lists.wikimedia.org/pipermail/wikitech-ambassadors/2013-August/000363.html
Comment 18 Andre Klapper 2013-09-20 15:26:27 UTC
*** Bug 31028 has been marked as a duplicate of this bug. ***

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


Navigation
Links