We first normalize the input vectors by the sum of their components, and calculate the JSD as described in (Lee, 1999): where KL denotes the Kullback-Leibler divergence between two vectors, and Note that the larger the JSD is, the less similar two vectors are.
the similarity between vectors Web search queries represent the demand of information from the users.