cosine is not calculated for all docs.. it is calculated only for querries with atleast one term