1. A method comprising: identifying one or more sessions for a first user query, wherein each session comprises a respective chain of respective resources attended to by a respective user that begins with a respective first resource that was identified by a respective first search result in response to the first user query from the respective user and continues with one or more respective subsequent resources that were each visited in the session by the user by invoking a link associated with a preceding resource in the chain; associating, with the first user query, a total user attention time of the respective resources attended to in the one or more sessions for the first user query, the total user attention time being a total of individual user attention times of the resources in the one or more sessions; responsive to receiving a second user query matching the first user query after the one or more sessions have ended: obtaining one or more second search results responsive to the second user query and one or more respective second search result scores for the second search results, each second search result identifying a corresponding resource; adjusting the respective second search result scores based on the total user attention time associated with the first user query; ranking the second search results based on the adjusted search result scores; and in response to the second search query, providing the ranked second search results.