Restrict search by category, or set of categories (e.g. range of date categories)
OpenPublic

Assigned To
None
Priority
Low
Author
bzimport
Subscribers
Cenarium, Nemo_bis, He7d3r, wikibugs-l
Projects
Tokens
"Like" token, awarded by Nemo_bis.
Reference
bz2285
Description

Author: kbaas

Description:
possibly a search _page_

advanced options would be:

*specify categories
*specify date range (for wikinews)


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=22269

bzimport added a project: MediaWiki-Search.Via ConduitNov 21 2014, 8:33 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz2285.
bzimport created this task.Via LegacyJun 1 2005, 5:50 PM
bzimport added a comment.Via ConduitJun 1 2005, 5:58 PM

rowan.collins wrote:

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.

bzimport added a comment.Via ConduitSep 28 2005, 8:12 AM

max wrote:

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.

brion added a comment.Via ConduitJan 22 2006, 4:26 AM

Restored bug from flood attack.

bzimport added a comment.Via ConduitMar 15 2006, 4:20 AM

Wiki.Melancholie wrote:

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.

bzimport added a comment.Via ConduitJul 13 2007, 6:21 PM

le.korrigan wrote:

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.

bzimport added a comment.Via ConduitJul 13 2007, 6:37 PM

rainman wrote:

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.

Raymond added a comment.Via ConduitNov 19 2007, 4:50 PM
  • Bug 12037 has been marked as a duplicate of this bug. ***
Nemo_bis added a comment.Via ConduitApr 15 2009, 6:08 PM

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).

bzimport added a comment.Via ConduitApr 15 2009, 10:09 PM

rainman wrote:

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)

Nemo_bis added a comment.Via ConduitApr 15 2009, 10:26 PM

(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.

Cenarium added a comment.Via ConduitJul 2 2009, 12:23 AM

The +incategory feature should also ignore nowikified categories.

bzimport added a comment.Via ConduitAug 12 2009, 3:42 PM

brian.mcneil wrote:

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

BloodRedSandman added a comment.Via ConduitAug 12 2009, 3:46 PM

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

Cenarium added a comment.Via ConduitNov 28 2009, 7:18 PM

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.

MaxSem added a comment.Via ConduitJun 27 2010, 7:38 AM
  • Bug 4286 has been marked as a duplicate of this bug. ***
Nemo_bis added a comment.Via ConduitAug 29 2013, 4:36 PM

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

Aklapper added a comment.Via ConduitSep 20 2013, 3:26 PM
  • Bug 31028 has been marked as a duplicate of this bug. ***
Nemo_bis awarded a token.Via WebDec 12 2014, 8:45 AM

Add Comment