14. A computer storage medium encoded with a computer program, the program comprising instructions that when executed by data processing apparatus cause the data processing apparatus to perform operations comprising: receiving a search query; generating first search results that identify resources that a search engine has identified as being responsive to the search query; identifying search modes based on the search query, the resources, or both the search query and the resources; providing a first user interface that presents for display at least a portion of the first search results and a respective search mode selector for each of one or more of the identified search modes; receiving user input selecting a first search mode by selecting one of the search mode selectors, wherein: the first search mode is associated with a first collection of records that share a first common attribute structure, a second of the search modes is associated with a second collection of records that share a second common attribute structure, and the first common attribute structure is different from the second common attribute structure; generating second search results that satisfy the search query and that refer to mode-specific records from the first collection of records that are associated with the first search mode, each of the search modes being associated with a particular collection of records from among multiple collections of records; formatting a plurality of the second search results using a mode-specific presentation template that is associated with the first search mode to generate formatted search results; and providing a second user interface that presents for display the formatted search results.
19. The computer storage medium of claim 14 , wherein identifying search modes comprises: determining that one or more of the resources are associated with respective one or more records from among the multiple collections of records, the one or more records being associated with the search modes.