Patent Document ID: 9646055
Application ID: 14244748

Base Claim:
1. A method comprising, by one or more computing devices: receiving from a first user of an online social network a search query input comprising one or more n-grams; generating a plurality of query commands by parsing the search query input, wherein each query command comprises one or more query constraints, each query constraint being a request for a particular object-type to be retrieved from a particular vertical, and wherein each query command is customized for one or more respective verticals; searching, for each query command of the plurality of query commands, the one or more respective verticals to identify a plurality of objects stored by the vertical that match the respective query command, each vertical storing one or more objects of a particular object-type associated with the online social network; generating a plurality of search-result modules corresponding to the plurality of query commands, respectively, each search-result module of the plurality of search-result modules comprising references to a plurality of the identified objects matching the query command corresponding to the search-result module; classifying the search query input, wherein the classification of the search query input is based at least in part on a semantic parsing of the search query input and social-networking information of the first user; scoring each search-result module of the plurality of search-result modules, wherein scoring the search-result modules comprises, for each search-result module of the plurality of search-result modules: calculating a score for the search-result module based at least in part on: a relevance of the search-result module with respect to the classification of the search query input; and a relevance of each identified object referenced in the search-result module with respect to the search query input; and sending each search-result module having a score greater than a threshold score to the first user for display, wherein the search-result modules are displayed in order based on their respective scores.

---

Claim 8:
8. The method of claim 1 , wherein the particular object-type is selected from a group consisting of: a user, a photo, a post, a webpage, an application, a location, or a user group.