piping search queries through