Page MenuHomePhabricator

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

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

Details

Reference
bz2285

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 8:33 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz2285.
bzimport added a subscriber: Unknown Object (MLST).

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.

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.

Restored bug from flood attack.

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.

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.

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.

  • Bug 12037 has been marked as a duplicate of this bug. ***

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

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)

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

The +incategory feature should also ignore nowikified categories.

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

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

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.

  • Bug 4286 has been marked as a duplicate of this bug. ***

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

  • Bug 31028 has been marked as a duplicate of this bug. ***
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Deskana lowered the priority of this task from Low to Lowest.Dec 29 2015, 10:51 PM
Deskana moved this task from Needs triage to Search on the Discovery-ARCHIVED board.
Deskana subscribed.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:02 AM
Aklapper removed a subscriber: wikibugs-l-list.