1. A method, comprising: ascertaining an intent of a query; determining by a processor a relevance of each one of a plurality of lines of text of a document based upon the intent of the query, content of the query, and content of each of the plurality of lines of text, wherein the document is a single search result returned in response to the query; ranking the plurality of lines of text according to the determined relevance of each of the plurality of lines of text; and generating a summary of the single search result using a subset of the plurality of lines of text based upon the ranking of the plurality of lines of text.