Patent ID: 8914392

Claim:
A method comprising: accessing, by one or more first computing devices associated with a search engine, a search query submitted by a first user associated with a social-networking system; retrieving, by the one or more first computing devices, one or more search results in response to the search query, each of the one or more search results being associated with one or more hyperlinks; determining, by the one or more first computing devices, for each of the one or more search results, a number of relevant clicks associated with the search result, wherein each relevant click is associated with a second user connected to the first user within a specified degree of separation within the social-networking system; ranking, by the one or more first computing devices, the one or more search results based on the respective number of relevant clicks for each search result, wherein the number of relevant clicks for each search result is based at least in part on a number of prior clicks on a hyperlink divided by a number of times that the hyperlink was displayed; and sending, by the one or more first computing devices, information associated with the one or more search results.