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.