The form of query term weighting is essentially the same. Adding 1 to the term frequency
component ensures that terms with frequency 1 have a non-zero weight.
Note that, in this model, term weights are computed only for terms that occur in
the document (or query). Given that the cosine measure normalization is incorporated
into the weights, the score for a document is computed using simply the
dot product of the document and query vectors.