Provide a form of incategory: which covers subcategories as well
Open, NormalPublic

Description

As a Wikipedia user I want the category search results to give me results for the searched category and its subcategories automatically.

See
https://de.wikipedia.org/wiki/Wikipedia:Umfragen/Technische_W%C3%BCnsche/Top_20#.E2.80.9ECatScan-Funktionalit.C3.A4t.E2.80.9C_in_die_Software_integrieren (in German).

This is part of the Top 20 wishes of the German community

Author: rd232

Description:
It's currently possible to search incategory:X or -incategory:X, where X is a category name, to include or exclude results categorised in Category:X. However, this does not cover subcategories. This would obviously be useful, particularly on Commons where search is an important way to find media.

This could be a separate keyword, say incategorysub:X. We could also, in addition, extend incategory to specify recursion levels, with incategory:X defaulting to incategory:0:X (just the category specified - no recursion), and incategory:5:X meaning that we want to traverse 5 levels deep, and perhaps incategory:-1:X meaning the same as incategorysub:X.

Obviously, the usefulness of this feature would be enhanced by also addressing Bug 21988 (basically, providing GUI access to advanced search features).


Version: unspecified
Severity: enhancement

bzimport set Reference to bz35402.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Mar 22 2012, 9:12 AM

rd232 wrote:

Well it's been a year. Is there any sign of ... anything?

Gqqnb added a comment.Nov 3 2013, 6:03 AM

If you ever tried to code a similar function, you will understand the flexible structure of mediawiki category makes it difficulty to implement.

One category can have multiple subcategories, and there may have a loop in a category tree(subsubsubcategory of a parent category may be the parent category).

As long as categories of mediawiki remain flexible, I belive this function will not be implemented in the near future.

Moving this feature request to CirrusSearch queue to be reassessed at a future date.

See also https://commons.wikimedia.org/wiki/Help:FastCCI which can do this (implemented as a separate program)

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

jeremyb-phone set Security to None.May 20 2015, 1:36 PM
jeremyb-phone added a subscriber: jeremyb.
demon removed a subscriber: demon.May 20 2015, 5:03 PM
KasiaWMDE edited the task description. (Show Details)Jun 2 2015, 12:20 PM
KasiaWMDE raised the priority of this task from "Lowest" to "Normal".
KasiaWMDE added a subscriber: Tobi_WMDE_SW.
KasiaWMDE edited the task description. (Show Details)Jun 16 2015, 2:26 PM
Restricted Application added a project: Discovery. · View Herald TranscriptJun 16 2015, 2:26 PM

There's no assignee but 2 workboards have this in column "Work in progress".

Please clarify @KasiaWMDE.

@jeremyb-phone Thanks for pointing that out and sorry for the confusion. We have been indeed working on it and the task is claimed now.

Restricted Application added a subscriber: Luke081515. · View Herald TranscriptJul 1 2015, 4:07 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 16 2015, 6:28 PM

@KasiaWMDE Can you link to the patch that completed this task, so that it is documented here? Thanks!

KasiaWMDE added a comment.EditedJul 17 2015, 12:25 PM

@Deskana We have developed a gadget that enables recursive search but it still has some serious constraints: limits regarding the number of searched categories. We are planning to raise them for next version of the gadget (see T105695). There is no specific patch for the gadget but here is the link to Github https://github.com/wmde/DeepCat-Gadget

Tobi_WMDE_SW removed KasiaWMDE as the assignee of this task.
Cpiral added a subscriber: Cpiral.Jan 18 2016, 1:24 AM
This comment was removed by Cpiral.
Cpiral added a comment.EditedJan 22 2016, 11:00 PM

The gadget is now at 70 categories, automatically producing incategory:pagename1|pagename2|...|pagename70 for us. Thanks!
I assume this is the desired level for the gadget, 70 (raised from 50).

Also, does this SQL-related gadget complete this task? Or does the "up for grabs" status imply that there is a plan for some sort of NOSQL-related insubcategory:?

@Cpiral Basically this task is done since the DeepCat-Gadget provides the functionality of searching in subcategories. However there's still the fact that the functionality of the gadget is quite limited, main blocker for raising the limits even more is T105328.

As for your question about Catgraph: DeepCat is backed by Catgraph, for more information on this, see here.

I think this task isn't really done, because CatGraph does only work in Wikimedia projects as far as I know, an use of this gadgetin other projects isn't possible in a simple way. I think that this task will finally be resolved without need of a gadget if T4725 is done, because it would be really simple to implement if such a functionality is given.

Restricted Application added a project: Discovery-Search-Backlog. · View Herald TranscriptApr 19 2016, 11:25 AM

Add Comment