Patent Document ID: 8521515
Application ID: 13598089

Base Claim:
1. A method comprising: identifying, by one or more processors, sentences, within one or more documents, the sentences including text included in a query; determining, by one or more processors and from the identified sentences, completions for the query, the determining including merging similar completions into a single completion; assigning, by the one or more processors, scores to the completions based on locations within the identified sentences at which the text occurs; and selecting, by one or more processors, a set of completions, of the determined completions, as potential completions for the query based on the scores.

---

Claim 3:
3. The method of claim 1 , further comprising: determining that a quantity of the documents that contain the text included in the query is less than a threshold; forming a shortened query based on the text included in the query when the quantity of the documents is less than the threshold; and performing a search for documents that contain text in the shortened query.