setting threshold for five words query