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.
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. 2. The method of claim 1 , where identifying a first rare word and identifying a second rare word comprise: comparing words in the first and second portions to a table that identifies occurrences of a plurality of words in the set of documents, and determining which of the words in the first and second portions occurred least often in the set of documents based on the table.