reduce input query for coarse search