A SEARCH ENGINE WITH TWO-DIMENSIONAL LINEARLY SCALABLE PARALLEL ARCHITECTURE

Abstract: In a search engine with two-dimensional scalable architecture for searching of a collection of documents (D), the search engine comprises data processing units which forms set of nodes (N) connected in a network, a first set of nodes comprising dispatch nodes (N alpha ), a second set of nodes search nodes (N beta ) and a third set of nodes indexing nodes (N gamma ). The search nodes (N beta ) are grouped in columns which via the network are connected in parallel between the dispatch nodes (N alpha ) and an indexing node (N gamma ). The dispatch nodes (N alpha ) are adapted for processing search queries and search answers, the search nodes (N beta ) are adapted to contain search software, at least some of the search nodes additionally comprising at least one search processor module (M) and the indexing nodes (N gamma ) are adapted for generally generating indexes <i>I</i> for the serach software. Optionally, acquisition nodes (N delta ) provided in a fourth set of nodes and adapted for processing the search answers, thus relieving the dispatch nodes of this task. The two-dimensional scaling takes place respectively through a scaling of the data volume and a scaling of the search engine performance through a respective adaptation of the architecture.

Description: A search engine with two-dimensional linearly scalable parallel architecture. The present invention concerns a search engine with two-dimensional linearly scalable parallel architecture for searching a collection of text documents D. wherein the documents can be divided into a number of partitions d d 2 ,...d n , wherein the collection of documents D is preprocessed in a text filtration system such that a preprocessed document collection D p is obtained and corresponding preprocessed partitions d p d p2l ... d pn , wherein an index / can be generated from the document collection D such that for each previous preprocessed partition d pl , d p2 ,... d pn a corresponding index / ' / , i 2l ... i„ is obtained, wherein searching a partition d of the document collection D takes place with a partition-dependent data set d p comprising both the preprocessed partition d pk and the corresponding index i k , with l≤k≤n, and wherein the search engine comprises data processing units which form sets of nodes connected in a network. Most prior art search engines work with large data set and employ powerful computers to perform the search. However, searching is a partitionable data processing problem, and this fact can be used to partition a search problem into a large number of specific queries and let each query be processed simultaneously on a commensurate number of processors connected in parallel in a network. Particularly searching can be regarded as a binary partitionable data processing problem, and hence a binary tree network is used for establishing a multiprocessor architecture such as disclosed for instance in US patent No. 4860201 (Stolfo & al.) and international patent application PCT/NO99/00308 which belongs to the applicant and hereby is incorporated by reference. The present applicant has developed proprietary technologies for searching within regular text documents. These technologies are i.a. based on a search system and a method for searching as described in international patent application PCT/NO99/00233 which belongs to the applicant and hereby is incorporated by reference. The search system is based on efficient core search algorithms which may be used in the search engine according to the invention. However, it has become increasingly important to cater for a growing number of documents to be searched and also to be able to handle an increased traffic load, i.e. the number of queries per second which shall be processed by the search system. This, apart from the ability to handle a large number of queries simultaneously on processor level, implies that a search engine should be implemented with an architecture that allows for preferably linear scalability in two dimensions, viz. both with regard to the data volume and the performance, i.e. the ability to handle a very large number of queries per second. Considering the development of the World Wide Web, a scalability problem in the search engine architecture will be extremely important as there presently is an enormous growth rate in both the number of documents and the number of users on the Internet. Prior art search engine solutions for Internet are able to scale to a certain level, but almost always this is achieved in a manner that requires a high cost increase of the search engine system relative to the growth in data volume or data traffic. Very often the system costs scale as the square of the data volume or the traffic, a doubling of the data volume thus leading to quadrupled system costs. Furthermore all the major Internet search engines presently are based on very expensive server technology, often coupled with brute computing force-approaches and accompanied with disadvantages such as slow server turnaround, requirements for special hardware to provide fault tolerance etc. The system costs can e.g. be measured as the amount of hardware required to implement a search engine solution or the actual aggregated price of the system. It is thus a main object of the present invention to provide a search engine with a multilevel data and functional parallelism, such that large volumes of data can be searched efficiently and very fast by a large number of users simultaneously. Particularly it is a further object of the invention to provide a parallel architecture for implementing a search engine with a multilevel data and functional parallelism. Yet a further object of the present invention is to provide a parallel architecture which is linearly scalable in tw o dimensions, i.e. with regard to both data volume and performance, that is the query rate. The above-mentioned objects and further features and advantages are provided with a search engine according to the invention which is characterized in that the first set of nodes comprises a dispatch nodes, a second set of nodes comprises b search nodes, a third set of nodes comprises g indexing nodes, and an optional fourth set of nodes comprises e acquisition nodes, that the dispatch nodes are connected in a multilevel configuration in the network, that the search nodes are grouped in columns which are connected in parallel in the network between the dispatch nodes and an indexing node, that the dispatch nodes are adapted to process search queries and search answers, the search queries being dispatched further to all search nodes and in case the acquisition nodes are not present, the search answers being returned to the dispatch nodes and therein being combined to a final search result, that the search nodes each are adapted to contain search software, that at least some of the search nodes additionally comprise at least one search processor module, that the indexing nodes are adapted for generally generating indexes for the search software and optionally for generating partition-dependent data sets d p k to search nodes which comprise a search processor module, that in case acquisition nodes are present, these are connected in a multilevel configuration in the network similar to that of the dispatch node, and adapted for gathering answers to search queries and outputting a final result thereof, thus relieving the dispatch nodes of this task, and that the two-dimensional linear scaling respectively takes place by scaling of the data volume through an increase in the number of partitions d and scaling of performance through replication of one or more partitions d. According to the invention are advantageously the multilevel configuration of the dispatch nodes and the optional acquisition nodes network provided by hierarchical tree structures, and the multilevel configuration of the optional acquisition nodes is then preferably a mirror image of the multilevel configuration of the dispatch nodes, the hierarchical tree structures preferably being binary tree structures. According to the invention each of the search nodes advantageously comprises a search software module. Further, according to the invention at least some of the search nodes comprises at least one dedicated search processor module, each dedicated search processor module being realized with one or more dedicated processor chips, which is adapted for parallel handling of a number of search queries. In this connection it is preferred that the dedicated search processor chips are provided in the search processor modules in r processor groups, each with z search processor chips and being connected with and adapted to receive data from a memory assigned to the processor group. According to the invention the increase in the number of partitions in the scaling of the data volume is advantageously implemented by an increase in the number of search node groups or columns. In this connection the increase in the number of partitions can preferably be accompanied by a corresponding increase in the number of dispatch nodes and. in case, also in the number of acquisition nodes, and optionally also by an increase in the number of index nodes. According to the invention the replication of one or more partition in the scaling of performance is advantageously implemented by an increase in the number of search nodes in each group or column. Finally it is according to the invention advantageous that the separate node sets each is implemented over one or more workstations connected in a data communications network. The search engine according to the invention shall now be described in terms of non-limiting exemplary embodiments and with reference to the accompanying drawings, in which fig. 1 shows a general overview of the architecture in a first embodiment of the search engine according to the invention. fig. 2 a general overview of the architecture in a second embodiment of the search engine according to the invention. fig. 3 schematically a search node with search software and dedicated hardware search chips. fig. 4 the layout of a single module of search chips. fig. 5 schematically the query handling in a dedicated search chip, fig. 6 schematically the principle of performance scaling. fig. 7 a multilevel dispatch node configuration based on a binary tree structure. fig. 8 an overview of the architecture of a first embodiment of the search engine according to the invention, with an indication of the principle for two-dimensional scaling, and fig. 9 an overview of the architecture of a second embodiment of the search engine according to the invention, with an indication of the principle for two-dimensional scaling. Searching a large collection of independent documents is a highly parallel task. The search engine according to the invention employs parallelism on different levels as shall be discussed in the following. The search engine according to the present invention searches a document collection of documents D. The documents can be divided into n partitions d d 2 , ..., d„. Each document collection D. or partition d of a document collection can be preprocessed for use in a hardware text filtering system, for instance implemented by dedicated hardware like the applicant's so-called Pattern Matching Chip (PMC) which is disclosed in the applicant's international patent application No. PCT/NO99/00344 which hereby is incorporated by reference. The preprocessed document collection is denoted D p and the corresponding preprocessed document collection partitions d p are denoted ^ / , d p2 , ..., d pn . Software-based search systems require an index generated from the document collection. The index is denoted / and the indexes corresponding to the document collection partitions d l . d p2 , ... d vn . are denoted / / , /?,... /„. The data set needed for searching a partition d of the document collection D, is called the partition-required or partition-dependent data set. In a software only system (SW system) the data set is the index i k , while in the systems with hardware (SW/HW systems), the data set also includes the preprocessed document collection partition d p k with the corresponding index i k , where 1 < k ≤ n. The essentially software-implemented partitioning and preprocessing operations can be rendered schematically as *(D) →*(d ...,d n )→*(d p , d pn ) →d. . where *(D) denotes a partitioning operation on the input D. *(d, d n ) a filtering operation, e.g. indexing, on d|,...,d n and d p of course is the partition-dependent data set. which in an SW svstem onlv shall be the index i*.. and with 1 < k < n. A search engine is implemented on a cluster of workstations that are connected using a high performance interconnect bus. The not shown workstations then constitute the server of the search system (search server). The workstations implement nodes of the search server. The nodes perform different tasks and are according to the invention implemented as set out below. The nodes can be regarded as virtual nodes distributed among the workstations, but in a SW/HW search engine the dedicated search processing hardware must be physically present in some workstations in order to support the hardware-based search nodes. The search node software may then still be distributed. Also, some search nodes in SW/HW search engine may comprise software only, and optionally be distributed over more than one workstation. • Dispatch nodes Ν α l ,...Ν αa handle incoming queries and send queries along to all the search nodes. The dispatch nodes can also be configured as acquisition nodes, gathering the answers, i.e. the search results to the queries. Upon receiving the answers, the dispatch nodes in the acquisition mode merge the search results into a final result. • Search nodes Np*,...,N pb hold a portion of the entire data set d p . A search node comprises both the dedicated search software as well as a number of the above-mentioned PMC modules for hardware searching. • Indexing nodes N y * N γg are responsible for generating indexes for the dedicated search software on a number of search nodes. For the PMC modules, the indexing node N r also filters and preprocesses the raw data. • Acquisition nodes N δ l ....,N 5e may optionally be provided for gathering the answers and merging the search results into a final result, in which case the dispatch node N α of course, is relieved of the acquisition task. A first embodiment of the search engine according to the invention is shown in fig. 1. where the search nodes N p are provided in columns or groups S provided and connected in parallel between the dispatch nodes N α and the indexing nodes N.,. The arrangement of the dispatch nodes N α is shown schematically, but in practice they would be provided in a multilevel hierarchical arrangement. A second embodiment of the search engine according to the invention is shown in fig. 2. where acquisition nodes N 5 are provided in a similar arrangement as that of the dispatch nodes, relieving the latter of the acquisition task. It is to be understood that singular workstations may implement a specific type of nodes only, on alternatively more than one type of nodes. In other words, the different types of nodes may be distributed over the cluster of workstations. Hence the architecture shown in figs. 1 and 2 is implemented by the whole cluster, and these figures accordingly do neither show the workstations nor the interconnect bus. The nodes shall now be discussed in more detail, starting with the search nodes which are central to the search engine according to the invention. A search node N p holds as mentioned a portion of the entire data set d p . The search node has both a software search engine SW, and optionally a number of PMC modules M. as shown in fig. 3. The data set for a search node Np is generated on an indexing node N r of which more anon. A search node may be equipped with a number x of PMC modules M for very fast searching, as shown in fig. 3. Each PMC module M has y groups G of z PMCs, as shown in figure 4. where each group G receives data from a single memory chip RAM. These A module M will typically be an individual circuit board. Each chip PMC is capable of processing q simultaneous queries, as shown schematically in fig. 5. A pattern matching chip PMC can process a data volume of t c bytes per second. Assuming that the memory modules are capable of delivering t,, bytes per second to the pattern matching chips PMCs. a PMC can search through the data volume of T c bytes, T L = min {t c , t v t, in the given time t. As shown in figure 4. the pattern matching chips PMC are placed in modules M with v groups G of z chips PMC. where each group G receives data from a single memory chip RAM. and the size of the memory chip is T c . The total amount of data this module can search through is 7 " , = T c with zq different queries. When x modules M are provided in a search node N (! . these PMC modules M can search through an amount of data equal to T, = 7 " , ■ .v= min f t c t } txy - since no PMC modules search through the same data, the number of concurrent queries is still zq. Thus the total query rate of the PMC modules in a search node can be expressed as 'HW 0) mm{t c ,ty}txy where T r denotes the total data volume on a node. The search node performance can now be calculated. Given that the PMC modules M (or any hardware equivalent) has a query rate of r HW and that the search software on a search node N p has a query rate of r Sf y, the total query rate r r of a search node N s can be expressed as = r ,Mw 0 - ΨiAv ) + r ,.swΨsw (2) where φ S w denotes the percentage of queries q that will be executed in software. The actual value of φ sw is dynamically updated at runtime from a statistical model. The dispatch nodes N α receive all the queries, and resend them to all the search nodes N β . The answers from the different search nodes Np are merged and in case the dispatch nodes N α functions as acquisition nodes, a complete answer is returned. The indexing nodes N y collect documents and create prebuilt indexes for the search software on the different search nodes Np. Hence the indexing nodes N r can be incorporated in the search nodes Np with appropriate indexing software in the latter. The hardware is based on scanning through the entire collection of raw data, but some preprocessing and filtering of the raw data can be done in the indexing nodes N.,. Concerning the interconnect and data traffic, some general observations can be made based on the following considerations. Different types of interconnect can be used for connecting the nodes. For a lower end system, a regular 100 Mbit Fast Ethernet will for instance handle the traffic. Traffic on the interconnect between the nodes can be divided into two categories: • Query traffic - traffic between dispatch nodes N, x and search nodes N p . This traffic is present all the time when searching is performed. The query traffic is characterized by low to medium data volumes and high frequency. • Data traffic - traffic between indexing nodes N 7 and search nodes Np. The data traffic is characterized by high data volumes and low frequency (typically one batch per day). A typical query will transfer a query string from the dispatch node N α to the search nodes Np. Then the search nodes N p will reply with a sequence of documents matching the query. Optionally N α shall also be able to query the search node for the URL strings for the document, but this is considered immaterial in the present context. The architecture of the search engine according to the invention can, based on the above considerations, now easily be scaled in two dimensions, viz. the data volume and the performance dimension respectively, Data volume scaling is achieved by adding more data set partitions d, in other words more groups or columns S of search nodes Np are added. Also the number of indexing nodes N r and dispatch nodes N α can be increased as necessary in order to handle more data set partitions d. Performance scaling can be achieved in the search engine architecture by replicating data set partitions d with a corresponding increase in the number of search nodes Np, by increasing the number as illustrated in fig. 6. When using replication of data set partitions to scale the system performance, each search node Np is part of the search node group S. Thus, the search nodes Np- ,...,N βj are arranged into groups Sp * Sp v , where r = — . h s denoting the * - - h ~~ scaling factor. The group S βj contains the search nodes Np .j .Np . * .*-- , Np +2 and Np. j+3 as rendered in fig. 8. Scaling the data volume ma cause the number of search nodes Np receiving queries broadcast from a dispatch node N α growing quite large. The architecture solves this problem by using several levels λ of dispatch nodes Ν α - this is illustrated in fig. 7. which renders the arrangement of the dispatch nodes N α as nodes in a portion of a binary data distribution tree. A binary data distribution tree easily allows for a linear scalability. Similar binary data distribution trees of the kind that already has been disclosed in the applicant ' s above-mentioned international application PCT/NO99/00344, which discloses the configuration of an actual implementation of the pattern matching chip PMC. The number of dispatch nodes N α in a regular binary tree is. of course 2 λ' ' on each level λ. λ = 1.2,3... A dispatch root node is on the first level, and up to and including a given level λ there is a total of 2 λ -l dispatch nodes in the tree. In case the dispatch nodes N α are used also as acquisition nodes, i.e. for gathering the answers returned from the search nodes, the results of a search is merged in the dispatch nodes, the root dispatch node outputting the final answer to the query. However, there is nothing against that the search engine according to the invention is set up with a separate data gathering tree connected to the search nodes and comprising acquisition nodes N δ gathering and outputting the final result of a query on the acquisition root node of the data gathering tree. i.e. the data acquisition node tree. The acquisition node tree could then be a mirror image of the dispatch node tree. The schematic layout of a scalable search engine architecture according to the invention is shown in fig. 8. with the principle for two-dimensional scaling illustrated. It will be seen that the dispatch nodes N α constitute a front end of the search engine and route the queries to the search node Np and receives the search results back from the search nodes, wherein the actual search of the indexed data is performed. In case dedicated acquisition nodes N δ are used, as shown in fig. 9. which otherwise is similar to fig. 8, the search results would, of course, be returned thereto. With the dispatch nodes N α arranged in a tree configuration as shown in fig. 9. the acquisition node network as a back end of the search engine would form a mirror image of the dispatch node network. The indexing (spidering) nodes N γ also constitute a back end of the search engine and collect data from e.g. the Internet and index the data to generate a searchable catalogue. By adding search nodes Np or rather search nodes groups S horizontally the search engine scales linearly in the data volume, each additional search node or search node group containing different data. Typical capacity parameters for a search engine can as a non-limitinε instance be siven as follows. One search node NR can typically handle 8 000 000 page views per day in a 5 000 000 documents catalogue. For a scalable search engine each search node Νp typically could hold 5 000 000 unique indexed documents, implying that 40 search nodes in one row are enough to maintain a 200 000 000 documents catalogue. Scaling the performance, i.e. increasing the traffic capacity demands more rows of search nodes Ν p with the same data to be added, such that the search nodes in a single column or group S contain identical data. A group or column S of 10 search nodes Np hence will be able to handle 80 000 000 page views per day, with 40 columns handling a total of 3 200 000 000 page views per day. An additional important benefit of a search engine according to the invention with the architecture scalable as herein disclosed, is that the query response time is essentially independent of the catalogue size, as each query is executed in parallel on all search nodes Np and that the architecture is inherently fault tolerant, such that faults in the individual nodes will not result in a system breakdown, only temporary reduce the performance until the fault is corrected. Moreover, the in principle unlimited linear scalability of the data volume and the traffic volume which can be provided in a search engine according to the invention, contrasts sharply with prior art search engines, wherein the search cost typically increases exponentially with the data or traffic volume increase, and wherein the maximum capacity of the prior art search engines typically will be reached at low to moderate volumes. With the search engine according to the invention the cost will scale linearly with the increase in capacity at most, depending actually on whether the capacity increase is provided by adding SW search nodes only or also SW/HW search nodes. Finally the search engine according to the invention offers the advantage that each node in practice can be implemented with standard low cost commercially available PCs, but alternatively also with more expensive UNIX-based servers such as for instance the Sun or Alpha computers as currentlv available.

Claims: PATENT CLAIMS 1. A search engine with two-dimensional linearly scalable parallel architecture for searching a collection of text documents D. wherein the documents can be divided into a number of partitions d), d 2 ,...d„, wherein the collection of documents D is preprocessed in a text filtration system such that a preprocessed document collection D p is obtained and corresponding preprocessed partitions d pt , d p2 ,... d pn , wherein an index I can be generated from the document collection D such that for each previous preprocessed partition d pi , d p2l ... d pn a corresponding index / , i ,... i n is obtained, wherein searching a partition d of the document collection D takes place with a partition-dependent data set d p k comprising both the preprocessed partition d p and the corresponding index i k , with l≤k≤n, and wherein the search engine comprises data processing units which form sets of nodes (N) connected in a network, characterized in that the first set of nodes comprises a dispatch nodes (N α l , .... N αa ), a second set of nodes comprises b search nodes (Np * Np t ,), a third set of nodes comprises g indexing nodes (N γ l ,...,N γg ), and an optional fourth set of nodes comprises e acquisition nodes (N δ ι,...N δe ). that the dispatch nodes (N α ) are connected in a multilevel configuration in the network, that the search nodes (Np) are grouped in columns (S) which are connected in parallel in the network between the dispatch nodes (N u ) and an indexing node (N γ ), that the dispatch nodes (N α ) are adapted to process search queries and search answers, the search queries being dispatched further to all search nodes (N p ), and in case the acquisition nodes (N δ ) are not present, the search answers being returned to the dispatch nodes (N α ) and therein being combined to a final search result. that the search nodes (Np) each are adapted to contain search software, that at least some of the search nodes (Np) additionally comprise at least one search processor module (M). that the indexing nodes (N γ ) are adapted for generally generating indexes i for the search software and optionally for generating partition-dependent data sets d p to search nodes (Np) which comprise a search processor module, that in case acquisition nodes (N ) are present, these are connected in a multilevel configuration in the network similar to that of the dispatch nodes (Ν α ), and adapted for gathering answers to search queries and outputting a final result thereof, thus relieving the dispatch nodes of this task, and that the two-dimensional linear scaling respectively takes place by scaling of the data volume through an increase in the number of partitions d and scaling of performance through replication of one or more partitions d. 2. A search engine according to claim 1 , characterized in that the multilevel configuration of the dispatch nodes (N α ) and the optional acquisition nodes (N δ ) in the network are provided by hierarchical tree structures. 3. A search engine according to claim 2, characterized in that multilevel configuration of the optional acquisition nodes (N δ ) is a mirror image of the multilevel configuration of the dispatch nodes (N α ). 4. A search engine according to claim 2, characterized in that the hierarchical tree structures are binary tree structures. 5. A search engine according to claim 1 , characterized in that each of the search nodes (Np) comprises a search software module (SW). 6. A search engine according to claim 5, characterized in that at least some of the search nodes (N β ) comprises at least one dedicated search processor module (M). each dedicated search processor module (M) being realized with one or more dedicated search processor chips (PMC) which each is adapted for parallel handling of a number of q search queries. 7. A search engine according to claim 6, characterized in that the dedicated search processor chips (PMC) are provided in the search processor modules (M) in y processor groups (G), each with z search processor chips (PMC) and being connected with and adapted to receive data from a memory (RAM) assigned to the processor group (G). 8. A search engine according to claim 1. characterized in that the increase in the number of partitions d in the scaling of the data volume is implemented by an increase in the number of search node groups or columns (S). 9. A search engine according to claim 8. characterized in that an increase in the number of partitions d in the scaling of the data volume is accompanied by a corresponding increase in the number of dispatch nodes (Ν α ) and. in case, also in the number of acquisition nodes (N δ ), and optionally also by an increase in the number of index nodes (N γ ). 10. A search engine according to claim 1 , characterized in that the replication of one or more partitions d in the scaling of the performance is implemented by an increase in the number of search nodes (Np) in each group or column (S). 1 1. A search engine according to claim 1 , characterized in that the separate node sets (N α , N p , N γ , N δ ) each is implemented over one or more workstations connected in a data communications network.

Inventors: EGGE TOR, HALAAS ARNE, RISVIK KNUT MAGNE, SVINGEN BOERGE, EGGE, TOR, HALAAS, ARNE, RISVIK, KNUT, MAGNE, SVINGEN, BOERGE
Applicants: EGGE TOR, FAST SEARCH & TRANSFER ASA, HALAAS ARNE, RISVIK KNUT MAGNE, SVINGEN BOERGE, EGGE, TOR, HALAAS, ARNE, RISVIK, KNUT, MAGNE, SVINGEN, BOERGE
Application year: 2000
Main classification: G06F17
IPC codes: G06F17