fix long resultsets on trigram search