主权项 |
1. A method comprising, by one or more computer systems of a social-networking system:
receiving, from a client device of a first user of the social-networking system, a search query comprising one or more characters inputted by the first user, the one or more characters being received as the first user inputs the one or more characters at the client device into a user interface of the social-networking system; identifying one or more entities associated with the social-networking system matching the one or more characters of the search query; ranking each of the identified entities based on a historical behavior of the user in selecting one or more prior search results; boosting one or more ranks of one or more of the identified entities based on a business objective of the social-networking system; sending, to the client device of the first user and in response to the received search query, one or more search results for presentation to the user as the user inputs the one or more characters at the client device into the user interface, each search result corresponding to one of the identified entities, the search results being presented according to the ranking and boosting of the corresponding identified entities, the presentation of the search results to the user enabling the user to select one or more of the search results to interact with. |