摘要 |
A social networking system receives a query associated with a user and, in response, provides a combined result set comprising objects stored by a social networking system that match the query. The combined result set comprises multiple result sets obtained from different search algorithms. The various objects stored by the social networking system may be of different types representing different concepts, such as user objects, application objects, event objects, location objects, group objects, and hub/page objects, any of which may be included in the result set. The objects of the result set may be further filtered, ordered, and/or grouped based at least in part on known relationships of the user with the objects, such as geographic distances between locations associated with the user and the objects. |
主权项 |
1. A computer-implemented method comprising:
receiving a query associated with a user of a social networking system; obtaining a result set comprising a plurality of objects from an object store of the social networking system that match the query, the plurality of objects including a first object having a first type and obtained based on the query using a first search algorithm, and a second object having a second type different from the first type and obtained based on the query using a second search algorithm; ordering at least a plurality of the objects of the result set based at least in part on measures of affinities of the user for the objects, an affinity of the user for an object comprising at least one from a group consisting of: a distance on a social graph between the user and the object, and a similarity between the user and the object, the social graph having nodes corresponding to objects and edges corresponding to relationships of the objects; and providing at least a portion of the result set to a client device. |