1. A computer-implemented method for generating context-based queries, the method comprising: receiving a user-specified query that includes a user-specified term; extracting a context-based term from context data associated with an application program, wherein the context data includes one of an indication of a state change associated with the application or an indication of an action triggered by a user interacting with the application; generating a context-based query that includes the context-based term by combining the user-specified query with the context-based term; receiving first search results for the user-specified query and second search results for the context-based query; and ranking resources listed in the first search results and resources listed in the second search results to generate merged context-based search results.