# Patent

## Title
Parallelization of electronic discovery document indexing

## Abstract

A system and method for parallelizing document indexing in a data processing system. The data processing system includes a primary processor for receiving a list of data having embedded data associated therewith, at least one secondary processor to process the data as provided by the primary processor, a data processor to determine a characteristic of the embedded data and process the embedded data based upon the characteristic, and a messaging module to exchange at least one status message between the primary processor and the at least one secondary processor.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This patent application is a continuation of U.S. patent application Ser. No. 12/866,950, filed on Nov. 5, 2010, which issued on Jan. 22, 2013 as U.S. Pat. No. 8,359,365, which claims priority to U.S. Provisional Application Ser. Nos. 61/027,600 and 61/027,603, filed in the U.S. Patent and Trademark Office (USPTO) on Feb. 11, 2008 by Sitsky et al., the entire contents of each application being incorporated herein by reference in their entirety.


BACKGROUND
1. Technical Field
The present disclosure generally relates to the field of electronic document indexing, and more particularly, to the parallelization of document indexing in the area of electronic discovery.
2. Description of the Related Art
Document indexing is one of the earliest phases in the electronic discovery lifecycle. It aims to identify and extract all office documents, emails, archives and other unstructured documents from the collected electronic evidence pertinent to a legal case. For each item extracted, it is necessary for searching purposes to extract all of the text contained in the item, and its metadata. This text is stored into a specialized text databases, which facilitates fast keyword searching over very large data sets. Keyword searching, in combination with other metadata specific searches, form the basis of filtering a very large data set into a more relevant subset that is then packaged for manual review or further analysis.
Document indexing of electronic data is traditionally performed on a single machine. Because electronic data is highly unstructured and hierarchal, a document indexing case could consist of a directory containing millions of office documents, a single exchange database file containing millions of email messages, or disk images of machines under investigation. For example, a zip file can contain office documents, an email message can contain attachments, an Outlook PST file can contain email messages and a disk image can contain files of any type. These drawbacks presents a problem since electronic discovery cases are growing rapidly in size, and there is a fundamental limit as to how fast a single machine can index data.
SUMMARY
According to an aspect of the present disclosure, a data processing system for parallelizing document indexing is presented. The data processing system is comprised of a primary processor, at least one secondary processor, and a messaging module. The primary processer receives a list of data, which may include embedded data therein, and creates a work item based upon the list of data. The at least one secondary processor processes the work items as provided by the primary processor. The at least one secondary processor further includes a data processor to determine a characteristic of the embedded data and process the embedded data based upon the characteristic. The messaging module of the data processing system exchanges at least one status message between the primary processor and the at least one secondary processor.
According to another aspect of the present disclosure, a method for parallelizing document indexing in a data processing system is presented. The method includes the steps of receiving a list of data having embedded data associated therewith, creating a work item based upon the list of data, exchanging at least one status message, processing the work item, determining a characteristic of the embedded data, and processing the embedded data based upon the characteristic. A work item includes the physical location of the data stored in a data storage medium, at least one data identifier to distinguish the location of the embedded data, and an identifier associated with the data. The at least one status message includes any one or more of the following: a processed work item, a processed work item related to the embedded data, a result of the processed work items, a request for the work item, the creation of a new work item, a request to process the new work item, and a notification relating to the completion of processed work items.



BRIEF DESCRIPTION OF THE DRAWINGS
The objects and features of the present disclosure, which are believed to be novel, are set forth with particularity in the appended claims. The present disclosure, both as to its organization and manner of operation, together with further objectives and advantages, may be best understood by reference to the following description, taken in connection with the accompanying drawings as set forth below:
FIG. 1 is a diagram of a data processing system for parallelizing document indexing, according to the present disclosure;
FIG. 2 is a functional block diagram of a method performed by a primary processor for parallelizing document indexing, according to the present disclosure; and
FIG. 3 is a functional block diagram of a method performed by at least one secondary processor for parallelizing document indexing, according to the present disclosure.



DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS
The present disclosure generally relates to the field of electronic document indexing, and more particularly, to the parallelization of document indexing in the area of electronic discovery.
In the discussion that follows, the term “processor” shall refer to any computer with at least one processing means. Examples of a processor may include, but are not limited to, single or multiple computers having multi-core processing means. The term “data” shall refer to any collection of numbers, characters, images, instructions, or other forms of information in an electronic format. Examples of data may include, but are not limited to, an exchangeable database file, a disk image file, electronic documents, electronic mail messages, PST files, an electronic document embedded within another file, and a directory containing millions of office documents.
Reference will now be made in detail to exemplary embodiments of the present disclosure, which are illustrated in the accompanying figures. The same reference numbers in different drawings may identify the same or similar elements. In addition, the following detailed description does not limit the present disclosure.
Referring to FIG. 1, a data processing system 100 for parallelizing document indexing is presented. Data processing system 100 is generally comprised of a primary processor 102, a job queue 104, a work item queue 106, a secondary processor 108, and a data storage medium 110. Data processing system 100 is further comprised of a messaging module (not show in Figure). In an embodiment, data processing system 100 includes at least one primary processor 102 and at least one secondary processor 108. For example, data processing system 100 may include one primary processor 102 and twenty secondary processors 108, wherein each processor includes multiple processing cores. In an embodiment, data processing system 100 may be provided utilizing common off-the-shelf hardware.
The messaging module of data processing system 100 may be any means for communication between the components of data processing system 100. For example, the messaging module may be a Java Messaging Service (JMS) Application, Programming Interface (API) utilized over a gigabit Ethernet. In an embodiment of the present disclosure, the message module is Apache ActiveMQ. In another embodiment, the messaging module utilizes TCP/IP sockets and MPI or PVM messaging libraries. Enterprise messaging systems, which provide additional facilities such as persistent messaging and message queues, may also be adapted as the messaging module. The message processing module further utilizes a messaging processing module to process status messages.
In an embodiment of the present disclosure, data processing system 100 implements a parallel processing architecture in which a large collection of data requires processing and each set of data contains an unpredictable amount of processing requirements. In this architecture, primary processor 102 receives a list of data from data storage medium 110. Data storage medium 110 may be, for example, at least one hard disk drive, an optical disc, flash memory, or a zip disk. Primary processor 102 stores the list of data in local memory utilizing job queue 104 and work item queue 106. In an embodiment, a separate data storage medium, such as a disk-based storage drive, may be used if the entries of work item queue 106 are too large to store in the local memory.
Primary processor 102 creates work items (not shown in Figure) based upon the list of data. A work item in data processing system 100 specifies an item of data that needs to be processed. For example, the item of data within a work item may be an exchange database file (EDB) file, a disk image file, an email message inside a Microsoft Outlook PST file, a Microsoft Word document, a zip file, an email message, and a Lotus Notes database file.
In an embodiment, a work item may be comprised of the physical location of the data stored in data storage medium 110, at least one data identifier to distinguish the location of embedded data associated to the data, and an identifier associated with the data. The identifier associated with the data may be a globally unique ID of the processing job that the work item is a member of. The physical location of the data may be represented by a root URL such as a file path to a PST file (“c:\evidence\input.pst”). The at least one data identifier may be an array of embedded IDs leading to the actual embedded data item inside the top-level data item. The actual values chosen for embedded IDs is implementation-dependent, but a simple implementation could be the embedded child ID based on position. For example, to describe a work item of the second attachment in the seventh email, inside the fourth folder, and inside a PST file, the at least one data identifier would be (assuming indexes start at 0): {“3”, “6”, “1”}.
Primary processor 102 monitors and tracks work items which needs to be processed by secondary processor 108. Each secondary processor 108 can ask primary processor 102 for a new work item to process whenever it is idle. In an embodiment, each secondary processor 108 executes four separate processes for requesting and processing work items. Once secondary processor 108 has finished processing a work item, secondary processor 108 may ask primary processor 102 for another work item. In another embodiment, primary processor 102 provides work items in a batch, for example, ten work items at once, to each secondary processor 108 to remove messaging latency. Since each secondary processor 108 controls work allocation explicitly, this architecture automatically provides load-balancing.
For the purposes of load-balancing, it is inefficient for secondary processor 108 to process an entire exchangeable database file, while another secondary processor 108 processes a single electronic file. In an embodiment, secondary processor 108 includes a data processor (not shown in Figure) to determine characteristics of embedded data within a work item. The data processor may process the work item based upon the type of embedded data, such as an exchangeable database file, a Microsoft Outlook email file, a Lotus Notes database file, a mailbox message file, an Outlook Express mail file, an Encase disk image file, raw disk image files, and partitions within a disk image. The data processor may also, for example, utilize the following classifications to determine the appropriate means to process embedded data:

    
    
        INLINE: indicates a relatively simple embedded data (for example a word processing document) that should be processed immediately without any additional communication to primary processor 102.
        WORK_ITEM: indicates that the embedded data is sufficiently complex that it should be processed by another secondary processor 108. The embedded data is sent to primary processor 102 to provide to another secondary processor 108 to process this embedded data.
        PROCESSING_JOB: indicates that it is very complex data which primary processor 102 needs to handle as a separate processing job.
    
    


As secondary processor 108 processes a data item, which may contain embedded data therein, secondary processor 108 may send a status message to primary processor 102 to indicate that the embedded data should be processed by another secondary processor 108. Upon processing each job and work item within job queue 104 and work item queue 106, primary processor 102 may signal each secondary processor 108 and any intermediate results created by each secondary processor 108 can be passed to primary processor 102 for final aggregation.
Data processing system 100 may include a fault tolerance mechanism (not shown in Figure). A fault tolerance mechanism may be provided on primary processor 102 and each secondary processor 108 to ensure that an entire process does not need to be restarted from the beginning in the event of a software or hardware failure.
In an embodiment, a failure tolerance mechanism is provided on at least one secondary processor 108. If secondary processor 108 has a software or hardware failure, a fault tolerance mechanism can allow secondary processor 108 to restart its processes and continue to receive status messages from primary processor 102. The fault tolerance mechanism may be implemented to allow the messaging module to recognize when secondary processor 108 has restarted, and if necessary, re-deliver any outstanding status messages to secondary processor 108 (or re-route them to other secondary processors 108).
A fault tolerance mechanism may also be provided on primary processor 102. If primary processor 102 has a software or hardware failure, a fault tolerance mechanism can allow primary processor 102 to restart its processes and continue to provide status messages to secondary processor 108. In an embodiment, each secondary processor 108 is restarted upon the failure of primary processor 102, and the pending work items in work item queue 106 are serialized to ensure that remaining jobs in job queue 104 are processed upon restarting primary processor 102.
Referring to FIG. 2, a functional block diagram of a method 200 performed by a primary processor for parallelizing document indexing is presented. Method 200 may include, but is not limited to the following steps, which are not limited to any particular order.
At step 202, primary processor 102 takes a list of data from data storage medium 110 as an input and initializes job queue 104. Primary processor 102 creates one entry within job queue 104 for each instance of data.
At step 204, primary processor 102 takes the list of data from data storage medium 110 and initializes work item queue 106. Primary processor 102 also creates one entry within work item queue 106 for each instance of data. Each entry within job queue 104 is initialized to indicate that it has one unprocessed work item associated with it.
At decision step 206, primary processor 102 determines whether job queue 104 is empty. If job queue 104 is empty, primary processor 102 continues to step 226. At step 226, primary processor 102 provides a status message to each secondary processor 108 to indicate that all processing jobs have been completed. At step 228, primary processor 102 aggregates the processing results of each secondary processor 108.
At step 208, primary processor 102 receives a status message from secondary processor 108. The status message provided by secondary processor 108 may be, but is not limited to, the following: a request for a work item, a request for another secondary processor 108 to process a work item, a request for primary processor 102 to create a new entry within job queue 104 and provide the new work item to another secondary processor 108, a processed work item, or a processed work item related to embedded data.
At decision step 210, primary processor 102 processes the status message to determine whether secondary processor 108 is requesting a new work item. If secondary processor 108 requests a new work item, primary processor 102 proceeds to step 212. At step 212, primary processor 102 takes the next work item in work item queue 106 and provides the work item to secondary processor 108. Primary processor 102 proceeds to step 206.
At decision step 214, primary processor 102 processes the status message to determine whether secondary processor 108 is requesting primary processor 102 to create a new entry within job queue 104 and provide the new work item to another secondary processor 108. If secondary processor 108 requests primary processor 102 to create a new entry within job queue 104, primary processor 102 proceeds to step 216. At step 216, primary processor 102 appends job queue 104 and work item queue 106 and creates new entries therein. Primary processor 102 proceeds to step 206.
At decision step 218, primary processor 102 processes the status message to determine whether secondary processor 108 is requesting another secondary processor 108 to process the work item. If secondary processor 108 is requesting another secondary processor 108 to process the work item, primary processor 102 proceeds to step 220. At step 220, primary processor 102 appends the work item to work item queue 106. At step 222, the entry within job queue 104, in which the appended work item is associated, is updated. In an embodiment, job queue 104 is incremented by one to represent that a work item remains unprocessed. The step of incrementing is performed to ensure that it is clear when a processing job has been completed. A processing job is completed when there are no longer any unprocessed work items associated with that processing job.
At step 224, primary processor 102 processes the status message to determine whether secondary processor 108 is providing a processed work item. If secondary processor 108 is providing a processed work item, primary processor 102 proceeds to step 222. In an embodiment, upon receiving a processed work item, primary processor 102 decrements work item queue 106 for the associated work item. If work item queue 106 is decremented to a value of zero, the associated entry within job queue 104 is removed from job queue 104.
Referring to FIG. 3, a functional block diagram of a method performed by at least one secondary processor for parallelizing document indexing is presented. Method 300 may include, but is not limited to the following steps, which are not limited to any particular order.
At step 302, secondary processor 108 communicates with primary processor 102 via the messaging module. Secondary processor 108 sends a status message to primary processor 102 to request a work item if it has no active work items to process. Upon sending a message to primary processor 102, secondary processor 108 waits for a response status message from primary processor 102.
At decision step 304, secondary processor 108 receives a status message from primary processor 102. If primary processor 102 provides a status message to indicate that all processing jobs have been completed, secondary processor 108 proceeds to step 328. At step 328, secondary processor 108 transmits a status message, which includes the results of the processed work items, to primary processor 102. In an embodiment, the step of transmitting occurs via a remote-file system copy.
At step 306, secondary processor 108 receives and processes a status message relating to a work item from primary processor 102. At step 308, secondary processor 108 processes the work item as set forth in the status message. The actual work item described in the status message is interpreted by secondary processor 108 to ensure that it is clear which data needs to be processed. For example, the data could be email number 56 in an archive file.
At decision step 310, secondary processor 108 determines if the data of the work item contains embedded data. For example, embedded data may be an electronic mail which contain attachments, or a Microsoft PST folder which contains an email message. If secondary processor 108 determines that the work item contains embedded data, secondary processor 108 proceeds to step 312.
At step 312, secondary processor 108 processes the work item to extract the embedded data. At step 314, the data processor of secondary processor 108 determines a characteristic of the embedded data. Based upon the characteristic of the embedded data, secondary processor 108 determines the appropriates means to process the embedded data.
At decision step 316, the data processor determines whether the work item contains very complex data. At step 318, if the data processor determines that the work item is complex, secondary processor 108 will provide a status message to primary processor 102 to create a new entry within job queue 104 and provide the new work item to another secondary processor 108.
At decision step 320, the data processor determines whether the work item should be handled by another secondary processor 108. At step 322, if the data processor determines that the work item should be handled by another secondary processor 108, secondary processor 108 will send a status message, which includes the work item, to primary processor 102.
At step 324, secondary processor 108 processes the embedded data. At step 326, secondary processor 108 transmits a status message, which includes the completed work item and associated embedded data, to primary processor 102.
No element, act, or instruction used in the present application should be construed as critical or essential to the present disclosure unless explicitly described as such. In addition, as used herein, the article “a” is intended to include one or more items. Where only one item is intended, the term “one” or similar language is used.
It will be understood that various modifications may be made to the embodiments disclosed herein. Therefore, the above description should not be construed as limiting, but merely as exemplifications of the various embodiments of the present disclosure. Those skilled in the art will envision other modifications within the scope and spirit of the claims appended hereto.

## Claims

1. A system for document indexing, the system comprising:
a storage medium;
a primary processor coupled to the storage medium and operable to receive a list of data, the data having embedded data associated therewith, and creating work items based upon the list of data, wherein each work item specifies data for processing; and
at least three secondary processors, wherein each of the secondary processors are configured to control work allocation of the work items amongst one another, each of the secondary processors operable to:
ask the primary processor for a new work item when that secondary processor is idle,
receive the new work item,
determine one or more characteristics of the embedded data and further determine, based on the one or more characteristics, that the embedded data in the new work item should either be processed immediately by that secondary processor or processed by a second secondary processor, and
process the new work item and create a second work item based on the new work item and request another one of the secondary processors to process the second work item based on the determination, wherein each of the new work item and the second work item specifies data for processing and the specified data of the second work item is different from the specified data of the new work item, and further wherein the secondary processors perform load balancing by all operating simultaneously.

2. The system of claim 1, further comprising at least twenty of the secondary processors that perform the load balancing by all operating simultaneously.

3. The system of claim 1, wherein each secondary processor classifies the embedded data for processing as INLINE, WORK_ITEM, or PROCESSING_JOB based on a complexity of the embedded data.

4. The system of claim 1, wherein the data comprises an electronic file embedded within another file.

5. The system of claim 1, wherein the list of data comprises the physical location of the data stored in the storage medium.

6. The system of claim 2, wherein each secondary processor classifies the embedded data for processing as INLINE or PROCESSING_JOB based on a complexity of the embedded data.

7. The system of claim 2, wherein each secondary processor classifies the embedded data for processing as INLINE based on a complexity of the embedded data.

8. The system of claim 1, further comprising a failure tolerance mechanism.

9. A document indexing system comprising:
a primary processor configured to create a work item that specifies embedded data to be processed; and
at least three secondary processors, each configured to control work allocation of the work item amongst one another, each of the secondary processors configured to:
receive the work item and extract the embedded data,
determine, based on a characteristic of the embedded data, that the work item should be processed by another one of the at least three secondary processors and create a second work item based on the received work item, wherein each of the work item and the second work item specifies data for processing and the specified data of the second work item is different from the specified data of the received work item, and
indicate to the primary processor that the second work item should be processed by another one of the secondary processors, wherein the system performs load balancing by operating all of the secondary processors simultaneously to simultaneously index a plurality of different work items.

10. The system of claim 9, wherein each secondary processor classifies the embedded data for processing as INLINE, WORK_ITEM, or PROCESSING_JOB based on a complexity of the embedded data.

11. The system of claim 9, wherein each of the secondary processors is configured to ask the primary processor for a new work item when it is idle.

12. The system of claim 11, further comprising at least twenty of the secondary processors.