6. The system of claim 1 , wherein the data manager is configured to get second production data, wherein the second production data comprise a plurality of second production documents and wherein each of the plurality of second production documents comprises at least one second production token and the query manager is configured to execute the Boolean query on the plurality of second production documents in the second production data.
1. A system for generating a Boolean query comprising: a. a processor; b. a memory coupled to the processor; c. a data manager configured to get training data and production data, wherein the training data comprises a plurality of training documents and each of the plurality of training documents comprises at least one training token, and wherein the production data comprises a plurality of production documents and each of the plurality of production documents comprises at least one production token; d. a clustering manager configured to cluster the plurality of training documents into a plurality of clusters based on the at least one training token in the plurality of training documents, wherein each cluster of the plurality of said clusters comprises at least one training document; and e. a query manager configured to generate the Boolean query for a cluster of the plurality of clusters based on an occurrence of the at least one training token in the at least one training document of the plurality of training documents, and to execute the Boolean query on the plurality of production documents in the production data.