主权项 |
1. A method comprising, by one or more computing devices:
accessing a social graph comprising a plurality of nodes and a plurality of edges connecting the nodes, the nodes comprising:
a first node corresponding to a first user associated with an online social network; anda plurality of second nodes each corresponding to a plurality of objects, respectively, associated with the online social network, each object being of a particular object-type; receiving, from a client device of the first user, a first search query comprising a selection of a first query-domain, the first query-domain corresponding to a first object-type; identifying, responsive to the first search query, a first set of objects of the plurality of objects matching the first object-type, each of the identified objects corresponding to a second node within a threshold degree of separation of the first node; sending, to the client device of the first user, a first search-results page responsive to the first search query, the first search-results page comprising references to one or more of the identified objects from the first set of objects and one or more query-filter elements, each query-filter element corresponding to a query-filter associated with the first query-domain, wherein each query-filter element is activatable to apply the associated query-filter to the identified objects; and receiving, from the client device of the first user, a second search query comprising a selection of one or more of the query-filters in response to the first user activating the corresponding query-filter elements. |