Patent ID: 8156125

Claim:
A method of selecting desired documents from a document collection comprising: reading by a query engine executing on a computer system a first query expression, said first query expression comprising an expression of a first query to be performed by a query engine to identify a first subset of said collection, an analysis indicator comprising an identification of at least one of a plurality of analysis functions to be performed on said first subset by an analysis engine executing on the computer system, and one or more parameters for the analysis function; running by the query execution engine the first query from the first query expression on the document collection to identify the first subset; reading by the analysis engine the analysis indicator of the analysis to be performed on said first subset and the one or more parameters; and generating by the analysis engine an analysis output by performing said analysis function with the one or more parameters on said first subset, wherein the analysis output comprises a second query expression comprising at least an expression of a second query to be performed by the query engine.