Patent ID: 8620902

Claim:
A computer program product for use with a computer device to execute a query collection against one or more electronic documents, the query collection comprising a plurality of full term queries, the computer program product comprising: a computer-readable medium storing computer-executable instructions for executing the query collection that, when executed by a processor of the computer device, cause the computer device to: receive the query collection; determine common terms within the query collection; sort the common terms by a frequency within the query collection; search the one or more electronic documents according to an optimized query collection plan such that the one or more electronic documents are searched for the common terms in accordance with the frequency within the query collection; for each common term found in the one or more electronic documents, search the one or more electronic documents for full term queries that include the common term that was found in the one or more electronic documents; and for each common term not found in the one or more electronic documents, prevent a search of the one or more electronic documents for the full term queries that include the common term that was not found in the one or more electronic documents.