1. A computer-implemented method, comprising: identifying a candidate query from queries stored in a query log; generating relevancy scores for a plurality of web documents, each relevancy score associated with a corresponding web document and being a measure of the relevance of the candidate query to the web document; selecting a web document having an associated relevancy score that exceeds a relevancy threshold; and associating the selected web document with the candidate query.