Last modified: 2014-10-26 10:45:27 UTC
Take this query from the suggester: https://en.wikipedia.org/w/api.php?format=jsonfm&uselang=en&action=query&list=allcategories&acprefix=1895+es&acprop=hidden&redirects= Now read [[mw:Manual:Category table]]: "Track all existing categories. Something is a category if it has an entry somewhere in categorylinks, or it once did." So it's logical that something like 1895 establisANONYMOUS IS LEGIONhments is in the suggestion list, but it is really not desirable. It contains many 'bad' words and deleted stuff that we don't really want to present to users. https://en.wikipedia.org/w/api.php?format=jsonfm&uselang=en&action=query&list=allcategories&acprefix=1895+es&acprop=hidden&redirects=&acprop=size|hidden This can be easily solved by adding: acmin=1 to the query.
Change 156250 had a related patch set uploaded by TheDJ: Categories: Don't suggest empty or old categories https://gerrit.wikimedia.org/r/156250
Alternative is to use the HotCat methodology: Here only categories that have their own page are considered to exist: https://en.wikipedia.org/w/api.php?format=json&action=query&list=allpages&apnamespace=14&aplimit=30&apfrom=1895%20es&apprefix=1895%20es
Change 156250 merged by jenkins-bot: Categories: Don't suggest empty or old categories https://gerrit.wikimedia.org/r/156250
Actually, i forgot, HotCat now actually runs 2 queries on both of these tables, and then combines them into a result.. Perhaps we should fix the api ? :)
*** Bug 69927 has been marked as a duplicate of this bug. ***