implement query filters and highlighting