1. A method comprising: obtaining selection data identifying a term selected by a user from a document displayed to the user, the term comprising one or more adjacent words; obtaining context data comprising one or more other words in the document; determining, from the context data and the selection data, a type of contextual search presentation to request from a search engine for the selected term, comprising: determining whether or not the context data and the selection data satisfy one or more criteria for presenting any of one or more types of special case contextual search presentations, wherein each type of special case contextual search presentation includes a formatted presentation of a different type of content; in response to determining that the context data and the selection data satisfy one or more criteria for presenting a first type of special case contextual search presentation: obtaining, from the search engine, a first special case contextual search presentation for the term identified by the selection data that includes a first type of content corresponding to the first type of special case contextual presentation; in response to determining that the context data and the selection data do not satisfy the criteria for presenting any of the types of special case contextual search presentations: obtaining, from the search engine, a default contextual search presentation for the selected term that includes a second type of content corresponding to the default contextual search presentation; and providing the first special case contextual search presentation or the default contextual search presentation for presentation to the user.
1. A method comprising: obtaining selection data identifying a term selected by a user from a document displayed to the user, the term comprising one or more adjacent words; obtaining context data comprising one or more other words in the document; determining, from the context data and the selection data, a type of contextual search presentation to request from a search engine for the selected term, comprising: determining whether or not the context data and the selection data satisfy one or more criteria for presenting any of one or more types of special case contextual search presentations, wherein each type of special case contextual search presentation includes a formatted presentation of a different type of content; in response to determining that the context data and the selection data satisfy one or more criteria for presenting a first type of special case contextual search presentation: obtaining, from the search engine, a first special case contextual search presentation for the term identified by the selection data that includes a first type of content corresponding to the first type of special case contextual presentation; in response to determining that the context data and the selection data do not satisfy the criteria for presenting any of the types of special case contextual search presentations: obtaining, from the search engine, a default contextual search presentation for the selected term that includes a second type of content corresponding to the default contextual search presentation; and providing the first special case contextual search presentation or the default contextual search presentation for presentation to the user. 4. The method of claim 1 , wherein the one or more types of special case contextual search presentations comprise an entity type of contextual search presentation that includes a knowledge panel, and wherein a knowledge panel is a formatted presentation of content relevant to an entity.