1. A method of selecting suggested query completions for a partial query, the method including: determining a prefix and a suffix of a partial query having multiple terms, the prefix including one or more terms occurring at a beginning of the partial query, the suffix including one or more terms occurring at an end of the partial query, wherein a last term in the prefix precedes a first term in the suffix; identifying a first set of candidate queries having prefixes which do not include the prefix of the partial query as a substring and having suffixes including at least three terms in common with the suffix of the partial query; identifying a second set of candidate queries having prefixes which do not include the prefix of the partial query as a substring and having suffixes including at least two terms in common with the suffix of the partial query; selecting the first set of candidate queries as candidate queries for completing the partial query if the first set is not empty, and selecting the second set of candidate queries as the candidate queries for completing the partial query if the first set is empty; and selecting one or more terms of unique suffixes among the suffixes of the candidate queries as suggested query completions for the partial query; wherein the method is performed by one or more computer processors.
1. A method of selecting suggested query completions for a partial query, the method including: determining a prefix and a suffix of a partial query having multiple terms, the prefix including one or more terms occurring at a beginning of the partial query, the suffix including one or more terms occurring at an end of the partial query, wherein a last term in the prefix precedes a first term in the suffix; identifying a first set of candidate queries having prefixes which do not include the prefix of the partial query as a substring and having suffixes including at least three terms in common with the suffix of the partial query; identifying a second set of candidate queries having prefixes which do not include the prefix of the partial query as a substring and having suffixes including at least two terms in common with the suffix of the partial query; selecting the first set of candidate queries as candidate queries for completing the partial query if the first set is not empty, and selecting the second set of candidate queries as the candidate queries for completing the partial query if the first set is empty; and selecting one or more terms of unique suffixes among the suffixes of the candidate queries as suggested query completions for the partial query; wherein the method is performed by one or more computer processors. 2. The method of claim 1 , wherein the suffix of the partial query ends with an incomplete term.