search: fix busted scope introduced in sphinx update