1. A method performed by a device, comprising: identifying a link in a first document, the link being associated with a second document; analyzing a first portion of text to the left of the link in the first document; analyzing a second portion of text to the right of the link in the first document; identifying a first rare word from the text in the first portion, where the first rare word is identified as a rare word based on a frequency of occurrence of the first rare word in a set of documents; identifying a second rare word from the text in the second portion, where the second rare word is identified as a rare word based on a frequency of occurrence of the second rare word in the set of documents; creating a context identifier based only on the first and second rare words; and ranking the second document within a list of search results based on the context identifier.
11. The method of claim 1 , where each of the first and second portions comprises a plurality of words.