Fix extreme slowness of negated tag search