主权项 |
1. A system, comprising:
a front end server that receives, from a client device, a search query that was submitted through a search interface presented in a host website and information related to a context file associated with the search query; a context processor that obtains the search query and the information related to the context file from the front end server and obtains the context file based on the information, wherein the context file specifies instructions that modify processing of the search query based on a context in which the search query was submitted, and wherein the context file specifies a document collection to be searched using the query; a search engine that receives the search query and the instructions from the context processor, identifies documents from the specified document collection based on both of the search query and the instructions, and filters documents of a specified type from the identified documents based on the instructions to obtain a filtered set of documents; a selector that selects additional content to be presented with the search results based on both of the search query and the context file; and a display module that interacts with the selector and the front end server to obtain the additional content and search results identifying at least a portion of the filtered set of documents, wherein the display module integrates the additional content into a search results page with the search results identifying the at least a portion of the filtered set of documents and provides the search results page to the client device. |