1. A method performed by one or more computing devices, the method comprising: identifying, by at least one of the one or more computing devices, a document; determining, by at least one of the one or more computing devices, that the document includes an annotation, the annotation describing a user interface that is to be visually displayed in connection with information identifying the document when the information identifying the document is included in a search results document, the user interface including a user interface element that, when selected, causes an action to be performed in connection with the document, and the action being performed without obtaining the document after the user interface element is selected; obtaining, by at least one of the one or more computing devices and based on the annotation, information relating to the user interface; and storing, by at least one of the one or more computing devices and in a search index, the information relating to the user interface in association with the information identifying the document.