Client-side caching of search keywords for online social networks
First Claim
1. A method comprising, by one or more processors associated with a client system:
- receiving, at the client system, a text query inputted by a first user of an online social network, the text query comprising one or more n-grams;
identifying, by the client system, a first set of candidate keywords from a plurality of keywords stored on a local cache of the client system, each keyword of the plurality of keywords being extracted from a source of a plurality of sources associated with the online social network, wherein each candidate keyword in the first set matches one or more n-grams of the text query;
determining, by the client system, a range of scores that correspond to the source of each of the candidate keywords;
calculating, by the client system, a score for each of the candidate keywords, wherein the score is within the range of scores that correspond to the source of the candidate keyword;
ranking, by the client system, each of the identified candidate keywords based at least in part on the score associated with the candidate keyword; and
displaying, at the client system 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 comprising an identified candidate keyword having a rank higher than a threshold rank.
3 Assignments
0 Petitions
Accused Products
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.
181 Citations
19 Claims
-
1. A method comprising, by one or more processors associated with a client system:
-
receiving, at the client system, a text query inputted by a first user of an online social network, the text query comprising one or more n-grams; identifying, by the client system, a first set of candidate keywords from a plurality of keywords stored on a local cache of the client system, each keyword of the plurality of keywords being extracted from a source of a plurality of sources associated with the online social network, wherein each candidate keyword in the first set matches one or more n-grams of the text query; determining, by the client system, a range of scores that correspond to the source of each of the candidate keywords; calculating, by the client system, a score for each of the candidate keywords, wherein the score is within the range of scores that correspond to the source of the candidate keyword; ranking, by the client system, each of the identified candidate keywords based at least in part on the score associated with the candidate keyword; and displaying, at the client system 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 comprising an identified candidate keyword having a rank higher than a threshold rank. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. One or more computer-readable non-transitory storage media embodying software that is operable when executed to:
-
receive a text query inputted by a first user of an online social network, the text query comprising one or more n-grams; identify a first set of candidate keywords from a plurality of keywords stored on a local cache of a client system, each keyword of the plurality of keywords being extracted from a source of a plurality of sources associated with the online social network, wherein each candidate keyword in the first set matches one or more n-grams of the text query; determine a range of scores that correspond to the source of each of the candidate keywords; calculate a score for each of the candidate keywords, wherein the score is within the range of scores that correspond to the source of the candidate keyword; rank each of the identified candidate keywords based at least in part on the score associated with the candidate keyword; and display, 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 comprising an identified candidate keyword having a rank higher than a threshold rank.
-
-
19. A system comprising:
- one or more processors; and
a non-transitory memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to;receive a text query inputted by a first user of an online social network, the text query comprising one or more n-grams; identify a first set of candidate keywords from a plurality of keywords stored on a local cache of a client system, each keyword of the plurality of keywords being extracted from a source of a plurality of sources associated with the online social network, wherein each candidate keyword in the first set matches one or more n-grams of the text query; determine a range of scores that correspond to the source of each of the candidate keywords; calculate a score for each of the candidate keywords, wherein the score is within the range of scores that correspond to the source of the candidate keyword; rank calculate a rank for each of the identified candidate keywords based at least in part on the score associated with the candidate keyword; and display, 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 comprising an identified candidate keyword having a rank higher than a threshold rank.
- one or more processors; and
Specification