Handle special tarako categories in search (bug 998814)

Ground work for bug 987880 (only the parts relevant to search) is
also included to make things easier,