Allow *ORs* of incategory to be sent via a post or get parameter. It should support ids. The idea here is that a gadget might do recursive category expansion and POST with these filled in. We'll need to limit the number of IDs/titles that we can take. More than 500 or 100 or 1000 would be slow I think.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Support ORs of incategory | mediawiki/extensions/CirrusSearch | master | +89 -5 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | • Manybubbles | T89823 CirrusSearch: Allow *ORs* of incategory to be sent via a post or get parameter | |||
Resolved | Andrew | T98602 Instance in SHUTOFF state, not rebooting |
Event Timeline
Comment Actions
Addendum: "ids" here means the pageid of the category. Not category id itself. This is to keep it compatible with catgraph.
Comment Actions
For the record, here is the rationale for implementing this feature:
- people (wikipedia editors) haven been asking for deep category intersection in search for a long time. This would allow a search to be limited to subcategories of "Germany", or even subcategories of "Germany" intersected with the subcategories of "Writers". The "CatScan" (and then, CatScan2) tool was developed to address this need. It has been very popular,but also very slow and prone to breakage and timeouts.
- GraphServ was developed by WMDE to address this need for the Toolserver. The CatGraph project on WikimediaLabs now uses GraphServ to provide fast access the category structures of all Wikimedia wikis to tool labs projects.
- We now want to allow CatGraph to be used with Cirrus search as deployed on Wikipedia and other WMF wikis, to allow deep category intersection to be used in searches. We want to allow this in a lightweight way, that does not involve the WMF committing ops resources towards maintaining a new service.
- The proposed solution is to write a Gadget that will "expand" queries on the fly, using CatGraph, and then passes them to Cirrus for evaluation. So, the CatSearch Gadget would expand "Germany" to a list of all the subcategories of Germany, recursively, and passes that list to Cirrus' incategory field.
Using such a Gadget, the power of CatGraph and the power of Cirrus search can be combined without Cirrus knowing about CatGraph, or CatGraph being deployed and maintained by the WMF. If this gadget proves to work well and be very useful and popular, the WMF may decide to integrate CatGraph or a similar technology more closely with Cirrus.
Comment Actions
@daniel: Such queries would better be done on Wikidata, instead of Wikipedia deep category intersection.
Comment Actions
Change 191622 had a related patch set uploaded (by EBernhardson):
WIP: Support ORs of incategory