1. A method comprising: receiving, by a set of one or more first servers, a query from a client device; in response to receiving the query, identifying, by one or more of the first servers, at least one index entry that is associated with a first document that (i) is responsive to the query, and (ii) is hosted by one or more second servers, wherein the index entry includes (i) an indication of a graphical user interface that is based on a document annotation associated with the first document and (ii) a static metric that is indicative of the quality of the first document, wherein the graphical user interface facilitates access to functionality provided by one or more functions within the first document; generating, by one or more of the first servers, a response to the query that includes multiple search results, wherein at least one particular search result of the multiple search results is a reference to the first document that is associated with the identified index entry; determining, by the one or more first servers, whether the graphical user interface should be associated with the reference to the first document in a search results document based on (i) the document annotation and (ii) the static metric stored in the index entry; in response to determining that the graphical user interface should be associated with the reference to the first document in a search results document based on (i) the document annotation and (ii) the static metric stored in the index entry, obtaining, by one or more of the first servers, information relating to the graphical user interface from the index entry; and providing, by one or more of the first servers, a search results document that includes at least (i) the reference to the first document that is associated with the identified index entry, and (ii) the graphical user interface that facilitates access to functionality provided by one or more functions within the first document.