Abstract:
In one embodiment, a method includes receiving, from a client system of a first user, a text query to search for posts of the online social network, the text query comprising one or more n-grams, searching a personalized index of keyword phrases associated with the first user to identify one or more keyword phrases matching one or more of the n-grams of the text query, the index of keyword phrases being based on content extracted from posts by one or more second users that have been viewed by the first user, and providing to the client system in response to receiving the text query, instructions for displaying a user interface comprising one or more of suggested queries to search for posts of the online social network, wherein each suggested query comprises one or more n-grams from the text query and one or more of the identified keyword phrases.
Abstract:
In one embodiment, a method includes receiving a query input from the first user. The method includes generating a plurality of suggested queries based at least in part on the query input, each suggested query being of a particular query-type of a plurality of query-types. Each suggested query may include one or more snippets, each snippet including contextual information about the suggested query and one or more references to the particular query-type of the suggested query. The method includes sending one or more of the suggested queries and the respective snippets for each suggested query. Each suggested query may be visually distinguished based on the particular query-type of the suggested query, and each suggested query may be selectable to execute a search query corresponding to the suggested query.
Abstract:
In one embodiment, a method includes receiving a text query inputted by a first user of an online social network, the text query including one or more n-grams. The method also includes identifying a first set of candidate keywords from multiple keywords stored on a local cache of a client system, each keyword being extracted from a source of multiple sources associated with the online social network, where each candidate keyword in the first set matches one or more n-grams of the text query and calculating a rank for each of the identified candidate keywords based at least in part on the source associated with the candidate keyword. The method also includes displaying, in response to the first user inputting the one or more n-grams of the text query, one or more suggested queries, each suggested query including an identified candidate keyword having a rank higher than a threshold rank.
Abstract:
In one embodiment, a method includes accessing a post of an online social network, extracting keywords from the content of the first post and the metadata associated with the first post, determining topics associated with each extracted keyword, calculating a topic-score based on a relevance of the topic to the post for each topic, generating a suggested keyword query corresponding to the post, the suggested keyword query comprising extracted keywords corresponding to each topic having a topic-score greater than a threshold topic-score, and sending the post and the suggested keyword query to a client device of a first user for display.
Abstract:
In one embodiment, a method includes accessing a post of an online social network, extracting keywords from the content of the first post and the metadata associated with the first post, determining topics associated with each extracted keyword, calculating a topic-score based on a relevance of the topic to the post for each topic, generating a suggested keyword query corresponding to the post, the suggested keyword query comprising extracted keywords corresponding to each topic having a topic-score greater than a threshold topic-score, and sending the post and the suggested keyword query to a client device of a first user for display.
Abstract:
In one embodiment, a method includes receiving, from a client system of a first user, a text query to search for posts of the online social network, the text query comprising one or more n-grams, searching a personalized index of keyword phrases associated with the first user to identify one or more keyword phrases matching one or more of the n-grams of the text query, the index of keyword phrases being based on content extracted from posts by one or more second users that have been viewed by the first user, and providing to the client system in response to receiving the text query, instructions for displaying a user interface comprising one or more of suggested queries to search for posts of the online social network, wherein each suggested query comprises one or more n-grams from the text query and one or more of the identified keyword phrases.
Abstract:
In one embodiment, a method includes receiving an unstructured text query to search for posts of the online social network. The method includes parsing the text query to identify one or more n-grams. The method includes searching an index of keyword phrases associated with the first user to identify one or more keyword phrases matching one or more of the n-grams of the text query. The index of keyword phrases is based on posts by one or more second users of the online social network. The method includes calculating a keyword score for each of the identified keyword phrases. The method includes generating one or more suggested queries. Each suggested query includes one or more n-grams identified from the text query and one or more identified keyword phrases. The method includes sending one or more of the suggested queries to search for posts of the online social network.
Abstract:
In one embodiment, a method includes receiving a query input from the first user. The method includes generating a plurality of suggested queries based at least in part on the query input, each suggested query being of a particular query-type of a plurality of query-types. Each suggested query may include one or more snippets, each snippet including contextual information about the suggested query and one or more references to the particular query-type of the suggested query. The method includes sending one or more of the suggested queries and the respective snippets for each suggested query. Each suggested query may be visually distinguished based on the particular query-type of the suggested query, and each suggested query may be selectable to execute a search query corresponding to the suggested query.
Abstract:
In one embodiment, a method includes accessing multiple posts of an online social network, each post being associated with a first entity of the online social network. The method also includes generating multiple candidate keywords by extracting one or more n-grams from content of the accessed posts and calculating a rank for each candidate keyword. The method also includes storing one or more candidate keywords in association with the first entity, each stored candidate keyword having a calculated rank higher than a threshold rank and sending, to a second entity of the online social network, one or more suggested queries associated with the first entity for display on the client system, each suggested query comprising one or more of the stored candidate keywords associated with the first entity.
Abstract:
In one embodiment, a method includes accessing multiple posts of an online social network, each post being associated with a first entity of the online social network. The method also includes generating multiple candidate keywords by extracting one or more n-grams from content of the accessed posts and calculating a rank for each candidate keyword. The method also includes storing one or more candidate keywords in association with the first entity, each stored candidate keyword having a calculated rank higher than a threshold rank and sending, to a second entity of the online social network, one or more suggested queries associated with the first entity for display on the client system, each suggested query comprising one or more of the stored candidate keywords associated with the first entity.