Generate queryMap according to whole corpus in RankerCosine.java