Patent ID: 7680781

Claim:
A method implemented in a computer-readable storage medium and configured to be processed by a computer, comprising: presenting metadata to a searcher, wherein the metadata is associated with a lexicon for a particular industry; receiving selections of the metadata from the searcher, wherein the metadata includes a topology and synonyms and custom defined relationships between terms and phrases associated with a particular industry, and wherein the metadata includes search operands to use with the terms and phrases; generating a thread-safe database query by using the selections as input parameters and generating the thread-safe database query as an Structured Query Language (SQL) query, wherein in building the thread-safe database query a select clause, a from clause, a where clause, and a group by clause are automatically generated, and wherein the thread-safe database query performs its data processing within its own thread of control and an execution space of the thread-safe data store query is unique and does not collide with other instances of database queries that concurrently process with the thread-safe database query, the input parameters including a login name for the searcher, matter identifier, a data source reference, a name for the thread-safe database query, and a name for metadata associated with the searcher; mapping the selections to fields of a database table; and populating the database query with the fields in a query language format of the database table in a results set table that is validated before it is presented to the searcher to ensure that query columns used in the search exist in the results set table.