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 based on the search query input; searching one or more verticals to identify one or more objects stored by the vertical that match the query commands, each vertical storing one or more objects associated with the online social network; generating a plurality of search-result modules, each search-result module corresponding to a query command of the plurality of query commands, each search-result module comprising references to one or more of the identified objects matching the query command corresponding to the search-result module; scoring the search-result modules; and sending each search-result module having a score greater than a threshold score to the first user for display.