12. A hardware memory device or hardware storage device comprising instructions which, when executed by a hardware processor, cause the hardware processor to perform acts comprising: selecting, from a query log stored in a database, a first query associated with a first set of Uniform Resource Locators (URLs) returned by a search engine responsive to the first query and a second query associated with a second set of URLs returned by the search engine responsive to the second query; measuring a click similarity between the first query and the second query, the click similarity being measured based on similarity of first click behavior of users with respect to the first set of URLs to second click behavior of the users with respect to the second set of URLs; measuring first mutual information values between first phrases and first tags of the first query based on the first click behavior, wherein the first phrases and the first tags comprise different tokens of the first query; measuring second mutual information values between second phrases and second tags of the second query based on the second click behavior, wherein the second phrases and the second tags comprise different tokens of the second query; measuring a tag similarity between the first query and the second query using the first mutual information values and the second mutual information values; determining whether the first query and the second query are synonyms using both the click similarity and the tag similarity; and when the first query and the second query are determined to be synonyms, storing the second query as a query synonym of the first query.
12. A hardware memory device or hardware storage device comprising instructions which, when executed by a hardware processor, cause the hardware processor to perform acts comprising: selecting, from a query log stored in a database, a first query associated with a first set of Uniform Resource Locators (URLs) returned by a search engine responsive to the first query and a second query associated with a second set of URLs returned by the search engine responsive to the second query; measuring a click similarity between the first query and the second query, the click similarity being measured based on similarity of first click behavior of users with respect to the first set of URLs to second click behavior of the users with respect to the second set of URLs; measuring first mutual information values between first phrases and first tags of the first query based on the first click behavior, wherein the first phrases and the first tags comprise different tokens of the first query; measuring second mutual information values between second phrases and second tags of the second query based on the second click behavior, wherein the second phrases and the second tags comprise different tokens of the second query; measuring a tag similarity between the first query and the second query using the first mutual information values and the second mutual information values; determining whether the first query and the second query are synonyms using both the click similarity and the tag similarity; and when the first query and the second query are determined to be synonyms, storing the second query as a query synonym of the first query. 14. The hardware memory device or hardware storage device of claim 12 , wherein the first phrase is different than the second phrase and the first tag is the same as the second tag.