Comment 1 for bug 554180

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: Item appears in two subsections without using X-Ubuntu-Category-Secondary

Thanks for your report.

That's a problem with the way the indexes are queried:
When querying cardgames the query is:
Xapian::Query((ACcardgame AND <alldocuments>))
We are looking for all records within category 'cardgames'

When querying 'dev tools/python' we are searching records within following the archive sections (in s-c cache and a-x-i index):
Xapian::Query(((XSpython OR AEpython OR XSrestricted/python OR AErestricted/python OR XSuniverse/python OR AEuniverse/python OR XSmultiverse/python OR AEmultiverse/python) AND <alldocuments>))

It appears that poker2D has both:
in s-c cache:
Term List for record #178: 7 AAPoker2D ACcardgame ACgame ACkde AEuniverse/python APpython-poker2d ASuniverse ATapplication XOAlucid XOCuniverse XOLUbuntu XOOUbuntu XOSftp.free.fr ...

in a-x-i db:
Term List for record #12349: 7 XOAlucid XOCuniverse XOLUbuntu XOOUbuntu XOSftp.free.fr XPpython-poker2d XSuniverse/python ...

what we want here is something like 'all records in a given section and not in another category than the current category'.

setting to triage/medium since it doesn't follow the specs but feel free to change importance.