JP2010165170A - Retrieval processing method, system and program - Google Patents

Retrieval processing method, system and program Download PDF

Info

Publication number
JP2010165170A
JP2010165170A JP2009006774A JP2009006774A JP2010165170A JP 2010165170 A JP2010165170 A JP 2010165170A JP 2009006774 A JP2009006774 A JP 2009006774A JP 2009006774 A JP2009006774 A JP 2009006774A JP 2010165170 A JP2010165170 A JP 2010165170A
Authority
JP
Japan
Prior art keywords
search
target data
request
retrieval
search target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009006774A
Other languages
Japanese (ja)
Inventor
Kenichi Mori
賢一 森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2009006774A priority Critical patent/JP2010165170A/en
Publication of JP2010165170A publication Critical patent/JP2010165170A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To suppress increase of time required for retrieval processing even if a data amount of a retrieval target increases. <P>SOLUTION: A retrieval target data management device 102 extracts a classification target item of a storage storing retrieval target data and a value of the item from a retrieval expression corresponding to a retrieval demand received by a retrieval controller 101, and specifies a retrieval target data storage 104 set as the target by the retrieval expression based thereon. The retrieval controller 101 bundles the respective retrieval expressions corresponding to one or more retrieval demands by specified storage 104, and issues a retrieval request including identification information of the storage 104 and information of the bundled retrieval expressions by storage 104. A retrieval processor 105 executes each retrieval processing corresponding to each retrieval expression included in the request to the retrieval target data inside the storage 104 corresponding to the identification information included in the retrieval request based on the retrieval request. The retrieval controller 101 distributes a retrieval result from the retrieval processor 105 to each retrieval expression, and transmits the retrieval result to a demand source of each retrieval demand corresponding to each retrieval expression. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

開示する技術は、蓄積された大量データの中から目的の情報を検索する技術に関する。   The disclosed technique relates to a technique for retrieving target information from a large amount of accumulated data.

業務実績の証明やトラブル対処のために、企業活動の結果に加えて、その業務に関する様々なデータを採取・蓄積する時代となり、大量データの中から目的の情報を素早く取り出すことが重要となっている。   In order to prove business results and deal with troubles, in addition to the results of corporate activities, it is an era of collecting and accumulating various data related to the business, and it is important to quickly extract the target information from a large amount of data Yes.

目的の情報を検索する第1の従来技術として、リレーショナルデータベースにデータが格納され、要求元の端末装置から検索条件が記述されたクエリ(検索式)が投入されることで、大量データから目的の情報を検索する技術が良く知られている。   As a first conventional technique for searching for target information, data is stored in a relational database, and a query (search expression) in which a search condition is described is input from a requesting terminal device. Techniques for retrieving information are well known.

目的の情報を検索する第2の従来技術として、下記特許文献1に記載の技術が知られている。この技術では、複数の要求元の端末装置から発行された検索要求が、一定時間溜め込まれた後、それらの検索要求に含まれる検索条件が束ねられて、検索対象データに対する一括検索が実行される。そして、その検索結果が、上記複数の検索要求毎の個別の検索結果に振り分けられて、各個別の検索結果が各要求元の端末装置に返される。   As a second conventional technique for searching for target information, a technique described in Patent Document 1 below is known. In this technology, search requests issued from a plurality of request source terminal devices are accumulated for a certain period of time, and then the search conditions included in those search requests are bundled to perform a batch search on the search target data. . The search results are distributed to the individual search results for each of the plurality of search requests, and the individual search results are returned to the requesting terminal device.

特開2002−222194号公報JP 2002-222194 A

前述した第1の従来技術においては、予め作成されているインデックスを使用できる検索条件の場合には、検索結果は素早く取り出すことができる。しかし、インデックスを使用できない検索条件の場合、格納されている全てのデータを読み込んでから検索を行うため、格納されているデータのサイズに応じて検索時間が変動する。その結果、格納されているデータのサイズが大きくなるにつれ検索時間が長くなるという問題点を有していた。   In the first prior art described above, in the case of a search condition that can use an index created in advance, the search result can be quickly retrieved. However, in the case of a search condition in which an index cannot be used, the search is performed after reading all the stored data, so that the search time varies depending on the size of the stored data. As a result, there is a problem that the search time becomes longer as the size of stored data becomes larger.

更に、複数の端末から検索要求が同時期に発行されると、検索処理が多重で動作してしまい、検索装置に負荷がかかったり、ディスクのI/Oが競合するようになる。この結果、図30(a)に示されるように、検索装置において検索要求が待たされるため検索時間が長くかかるようになり、検索時間を予測することが困難になってしまうという問題点をも有していた。   Further, if a search request is issued from a plurality of terminals at the same time, the search processing is performed in a multiplex manner, and a load is applied to the search device or disk I / O competes. As a result, as shown in FIG. 30 (a), a search request is waited in the search device, so that it takes a long time to search and it becomes difficult to predict the search time. Was.

一方、前述した第2の従来技術では、図30(b)に示されるように、複数の端末から検索要求が同時期に発行されても、検索装置によって各検索要求に含まれる検索条件が一定時間毎に束ねられて一括検索が行われる。この結果、検索装置は、1つの端末からの検索要求とほぼ同じ応答時間で、検索結果を複数の端末に返すことができる。つまり、大量の検索対象データに対して1回の全データ読込み(ベタ舐め)を行うだけで、複数の検索条件に対する結果を抽出することができる。従って、図30(b)に示されるように、検索要求の多重度が上がっても、検索時間の予測が可能であるという特徴を有する。   On the other hand, in the second prior art described above, as shown in FIG. 30B, even when search requests are issued from a plurality of terminals at the same time, the search conditions included in each search request are constant by the search device. A batch search is performed by bundling every hour. As a result, the search device can return the search results to a plurality of terminals with substantially the same response time as a search request from one terminal. That is, it is possible to extract results for a plurality of search conditions only by reading all data once (solid licking) for a large amount of search target data. Therefore, as shown in FIG. 30B, the search time can be predicted even if the multiplicity of search requests increases.

しかし、第2の従来技術では、検索対象データのデータ量が多くなると、図31に示されるように、検索処理装置による1回の全データ読込みにかかる時間3101が長くなる。この結果、検索要求に対する検索装置の応答時間が長くなってしまうという問題点を有していた。   However, in the second prior art, when the amount of data to be searched increases, as shown in FIG. 31, the time 3101 required for one full data read by the search processing device becomes longer. As a result, there has been a problem that the response time of the search device for the search request becomes long.

このような問題点に対して、図32の3201として示されるように、検索対象データが複数のファイルに分割されて検索処理が並行に行われることで、応答時間を短くすることはできる。しかし、検索対象データが複数のファイルに分割されると、以下の課題が発生する。   In response to such a problem, as shown by 3201 in FIG. 32, the search target data is divided into a plurality of files and the search processing is performed in parallel, so that the response time can be shortened. However, when the search target data is divided into a plurality of files, the following problems occur.

検索要求元が、ある特定の範囲のデータだけを検索対象としたい場合には、検索対象データのファイル名やデータベースを指定することで、図33の3301として示されるように、検索制御装置が検索対象データの範囲を絞り込むことができる。しかし、この指定を行うためには、検索要求元が、自分が検索したい検索対象データを知っている必要がある。従って、検索対象データのデータ量が多くなると、検索対象となる情報を検索要求元から指定することが困難になる。   When the search request source wants to search only data in a specific range, the search control device searches for the search target data by specifying the file name or database of the search target data as shown as 3301 in FIG. The range of target data can be narrowed down. However, in order to make this designation, the search request source needs to know the search target data that the user wants to search. Therefore, when the amount of data to be searched increases, it becomes difficult to specify information to be searched from the search request source.

更に第2の従来技術による技術を使用するため、図34に示されるように、検索制御装置が複数の検索要求元からの検索条件を束ねて検索を行う場合、検索対象データに対して束ねた複数の検索式を指定する必要がある。この結果、図34の3401として示されるように、検索対象外のデータに対しても、関係のない検索式に対する検索が行われてしまい、検索処理に無駄が発生する。   Furthermore, since the technique according to the second prior art is used, as shown in FIG. 34, when the search control device performs a search by combining search conditions from a plurality of search request sources, the search target data is bundled. Multiple search expressions must be specified. As a result, as shown as 3401 in FIG. 34, a search with respect to an unrelated search formula is performed even on data that is not a search target, and the search processing is wasted.

開示する技術が解決しようとする課題は、検索において、検索対象データのデータ量が多くなっても、効率的な検索対象データの絞込みと検索条件の指定を可能として、検索処理に要する時間の増大を抑制することにある。   The problem to be solved by the disclosed technology is that, even when the amount of search target data increases, the search target data can be narrowed down and the search conditions can be specified efficiently, and the time required for search processing increases. It is to suppress.

上記課題を解決するために、開示する技術は、検索要求を受信し、該検索要求に対応する検索式に基づいて検索依頼を生成し、該検索依頼に基づいて複数の検索対象データ格納庫に分類して格納されている検索対象データに対して検索処理を実行し、該検索処理の検索結果を前記検索要求の要求元に通知する検索処理方法、システム、又はプログラムを前提とする。   In order to solve the above problems, the disclosed technology receives a search request, generates a search request based on a search expression corresponding to the search request, and classifies the search requests into a plurality of search target data storages based on the search request. The search processing method, system, or program is executed on the assumption that the search processing is executed on the search target data stored in this manner, and the search result of the search processing is notified to the request source of the search request.

検索対象データ特定処理ステップは、検索要求に対応する検索式から、検索対象データが複数の検索対象データ格納庫に分類して格納されるときに用いられる分類対象項目と該項目の値を抽出し、その分類対象項目の値に基づいて検索式が対象とする検索対象データ格納庫を特定する。   The search target data specifying processing step extracts a classification target item and a value of the item used when the search target data is classified and stored in a plurality of search target data storages from a search formula corresponding to the search request, Based on the value of the classification target item, the search target data storage that is targeted by the search formula is specified.

検索依頼処理ステップは、1つ以上の検索要求に対応する各検索式を、各検索式に対応して検索対象データ特定処理ステップによって特定される検索対象データ格納庫別に束ね、その検索対象データ格納庫別にその識別情報と束ねられた各検索式の情報とを含む検索依頼を生成して発行する。   In the search request processing step, each search expression corresponding to one or more search requests is bundled for each search target data storage specified by the search target data specifying processing step corresponding to each search expression, and for each search target data storage A search request including the identification information and information of each search expression bundled is generated and issued.

検索処理ステップは、検索依頼に基づいて、その検索依頼に含まれる識別情報に対応する検索対象データ格納庫内の検索対象データに対して、その検索依頼に含まれる各検索式に対応する各検索処理を実行する。   In the search processing step, each search process corresponding to each search expression included in the search request is performed on the search target data in the search target data storage corresponding to the identification information included in the search request based on the search request. Execute.

検索結果通知処理ステップは、検索処理ステップにより得られる検索結果を、各検索式毎に振り分けて対応する各検索要求の要求元に送信する。   The search result notification processing step distributes the search results obtained in the search processing step for each search formula and transmits the search results to the corresponding request sources.

開示する技術によれば、検索対象データの検索範囲を自動的に絞り込むことが可能とな
り、検索要求者は検索対象データの検索範囲を知る必要はない。従って、検索対象データのデータ量が多くなっても、検索対象データの検索範囲を適切に指定することができ、無駄な検索処理が発生しないように制御することが可能となる。
According to the disclosed technology, it is possible to automatically narrow down the search range of the search target data, and the search requester does not need to know the search range of the search target data. Therefore, even if the amount of search target data increases, the search range of the search target data can be appropriately specified, and control can be performed so that useless search processing does not occur.

また、検索処理時には、特定された検索対象データに対応する検索処理のみが起動される。このため、検索処理数を大幅に軽減することができ、検索要求者への応答時間を大幅に短縮することが可能となる。   In the search process, only the search process corresponding to the specified search target data is started. For this reason, the number of search processes can be greatly reduced, and the response time to the search requester can be greatly shortened.

実施形態の構成図である。It is a block diagram of embodiment. 検索対象データ管理装置における検索対象データ登録処理の動作説明図である。It is operation | movement explanatory drawing of the search object data registration process in a search object data management apparatus. 検索対象データ管理装置における検索対象データ登録処理の動作例を示す図である。It is a figure which shows the operation example of the search object data registration process in a search object data management apparatus. 検索対象データ管理装置における検索対象データ特定処理の動作説明図である。It is operation | movement explanatory drawing of the search object data specific process in a search object data management apparatus. 検索対象データ管理装置における検索対象データ特定処理の動作例を示す図である。It is a figure which shows the operation example of the search object data specific process in a search object data management apparatus. 検索制御装置によるマルチファイルの検索処理の動作説明図である。It is operation | movement explanatory drawing of the search process of the multi file by a search control apparatus. 検索対象データ管理装置における検索対象データ登録処理を示す動作フローチャートである。It is an operation | movement flowchart which shows the search object data registration process in a search object data management apparatus. 検索対象データのデータ構成例を示す図である。It is a figure which shows the data structural example of search object data. 検索対象データ所在管理簿のデータ構成例を示す図(検索対象データ格納庫がファイルの場合)である。It is a figure which shows the example of a data structure of a search object data location management book (when a search object data storage is a file). 検索対象データ所在管理簿のデータ登録例を示す図(検索対象データ格納庫がファイルの場合)である。It is a figure which shows the data registration example of a search object data location management book (when a search object data storage is a file). 検索対象データ管理装置における検索対象データ登録処理の例を示す図(検索対象データ格納庫がCSVファイルの場合)である。It is a figure which shows the example of the search object data registration process in a search object data management apparatus (when search object data storage is a CSV file). 検索対象データ管理装置における検索対象データ登録処理の例を示す図(検索対象データ格納庫がXMLファイルの場合)である。It is a figure which shows the example of the search object data registration process in a search object data management apparatus (when search object data storage is an XML file). 検索対象データ管理装置における検索対象データ特定処理を示す動作フローチャートである。It is an operation | movement flowchart which shows the search object data specific process in a search object data management apparatus. 検索対象データ所在管理簿への問合せ例を示す図(検索対象データ格納庫がファイルの場合その1)である。It is a figure (example 1 when a search object data storage is a file) which shows the example of a query to a search object data location management book. 検索対象データ所在管理簿への問合せ例を示す図(検索対象データ格納庫がファイルの場合その2)である。It is a figure (example 2 when a search object data storage is a file) which shows the example of a query to a search object data location management book. 検索対象データ管理装置における検索対象データ特定処理の例を示す図(検索対象データ格納庫がCSVファイルの場合)である。It is a figure which shows the example of the search object data specific process in a search object data management apparatus (when search object data storage is a CSV file). 検索対象データ管理装置における検索対象データ特定処理の例を示す図(検索対象データ格納庫がXMLファイルの場合)である。It is a figure which shows the example of the search object data specific process in a search object data management apparatus (when search object data storage is an XML file). 検索制御装置における検索対象ファイルごとの検索式の登録処理を示す動作フローチャートである。It is an operation | movement flowchart which shows the registration process of the search expression for every search object file in a search control apparatus. 検索制御装置における検索式の束ね処理の動作説明図である。It is operation | movement explanatory drawing of the search formula bundling process in a search control apparatus. 検索制御装置における検索式の束ね処理に用いられるデータ構成例を示す図である。It is a figure which shows the example of a data structure used for the search expression bundling process in a search control apparatus. 検索処理装置に対する検索依頼処理の動作説明図である。It is operation | movement explanatory drawing of the search request process with respect to a search processing apparatus. 検索制御装置における検索結果の出力ファイルのマージ処理を示す動作フローチャートである。It is an operation | movement flowchart which shows the merge process of the output file of the search result in a search control apparatus. 検索要求元への検索結果の通知処理の動作説明図である。It is operation | movement explanatory drawing of the notification process of the search result to a search request source. 検索対象データ所在管理簿のデータ構成例を示す図(検索対象データ格納庫がデータベースの場合)である。It is a figure which shows the example of a data structure of a search object data location management book (when a search object data storage is a database). 検索対象データ所在管理簿のデータ登録例を示す図(検索対象データ格納庫がデータベースの場合)である。It is a figure which shows the data registration example of a search object data location management book (when a search object data storage is a database). 検索対象データ管理装置における検索対象データ登録処理の例を示す図(検索対象データ格納庫がデータベースの場合)である。It is a figure which shows the example of the search object data registration process in a search object data management apparatus (when search object data storage is a database). 検索対象データ所在管理簿への問合せ例を示す図(検索対象データ格納庫がデータベースの場合)である。It is a figure which shows the example of a query to a search object data location management book (when a search object data storage is a database). 検索対象データ管理装置における検索対象データ特定処理の例を示す図(検索対象データ格納庫がデータベースの場合)である。It is a figure which shows the example of the search object data specific process in a search object data management apparatus (when a search object data storage is a database). 実施形態に基づくプログラムを実行できるコンピュータシステムのハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the computer system which can run the program based on embodiment. 従来技術の説明図である。It is explanatory drawing of a prior art. 従来技術の問題点の説明図(その1)である。It is explanatory drawing (the 1) of the problem of a prior art. 従来技術の問題点の説明図(その2)である。It is explanatory drawing (the 2) of the problem of a prior art. 従来技術の問題点の説明図(その3)である。It is explanatory drawing (the 3) of the problem of a prior art. 従来技術の問題点の説明図(その4)である。It is explanatory drawing (the 4) of the problem of a prior art.

以下、実施形態について詳細に説明する。
図1は、実施形態の構成図である。
本実施形態は、検索制御装置101、検索対象データ管理装置102、検索対象データ所在管理簿103、検索対象データ格納庫104、及び検索処理装置105を含む。
Hereinafter, embodiments will be described in detail.
FIG. 1 is a configuration diagram of the embodiment.
The present embodiment includes a search control device 101, a search target data management device 102, a search target data location management list 103, a search target data storage 104, and a search processing device 105.

まず、検索対象データ管理装置102の動作について説明する。
同装置102は、以下の2つの処理を実行する。
・検索対象データ登録処理
・検索対象データ特定処理
First, the operation of the search target data management apparatus 102 will be described.
The device 102 executes the following two processes.
・ Search target data registration process ・ Search target data identification process

まず、検索対象データ管理装置102において実行される検索対象データ登録処理について、図2に示される動作説明図に沿って説明する。
(1)事前に、データを分類するための分類条件定義として、分類対象項目と、分類条件が定義される。この分類条件定義は、複数定義することができる。
(2)その後、登録されるべき登録対象データが解析され、その登録対象データ中に、分類条件定義中の分類対象項目が含まれているか確認される。
First, search target data registration processing executed in the search target data management apparatus 102 will be described with reference to an operation explanatory diagram shown in FIG.
(1) Classification target items and classification conditions are defined in advance as classification condition definitions for classifying data. A plurality of classification condition definitions can be defined.
(2) Thereafter, registration target data to be registered is analyzed, and it is confirmed whether the classification target item in the classification condition definition is included in the registration target data.

(3)登録対象データ中に分類対象項目が含まれている場合、登録対象データから分類対象項目の値が取得される。そして、その分類対象項目が含まれる分類条件定義中の分類条件と上記取得された値とに基づいて、登録対象データが格納される検索対象データ格納庫104が決定され、登録対象データがその格納庫に格納される。図2の例では、検索対象データ格納庫104のCに登録対象データが格納される。なお、上記分類対象項目及び分類条件に対応する検索対象データ格納庫104が存在しない場合には、その格納庫が新規に作成され、そこに登録対象データが格納される。ここで、検索対象データ格納庫104とは、データベースの分類されたテーブルや、フォルダ又はディレクトリといった複数のファイルを管理する分類されたデータ格納手段であってもよいし、ファイルであってもよい。ファイルの場合、ファイル形式としてはCSV形式やXML形式が採用でき、分類された各ファイルに登録対象データが追記されていくことになる。
(4)登録対象データ中に何れの分類条件定義中の分類対象項目も含まれていない場合、分類対象無しに対応する検索対象データ格納庫104に、登録対象データが格納される。
(3) When the classification target item is included in the registration target data, the value of the classification target item is acquired from the registration target data. Based on the classification condition in the classification condition definition including the classification target item and the acquired value, the search target data storage 104 for storing the registration target data is determined, and the registration target data is stored in the storage. Stored. In the example of FIG. 2, registration target data is stored in C of the search target data storage 104. If the search target data storage 104 corresponding to the classification target item and the classification condition does not exist, the new storage is created and the registration target data is stored therein. Here, the search target data storage 104 may be a classified data storage unit that manages a plurality of files such as a classified table in a database, a folder, or a directory, or may be a file. In the case of a file, the CSV format or the XML format can be adopted as the file format, and registration target data is additionally written in each classified file.
(4) When the registration target data does not include any classification target item in any classification condition definition, the registration target data is stored in the search target data storage 104 corresponding to the absence of the classification target.

上述の検索対象データ登録処理において、処理(2)における登録対象データの解析処理、及び処理(3)における検索対象データ格納庫104の決定処理のために、検索対象データ所在管理簿103を参照することができる。これについては後述する。   In the search target data registration process described above, refer to the search target data location management list 103 for the analysis process of the registration target data in the process (2) and the determination process of the search target data storage 104 in the process (3). Can do. This will be described later.

図3は、検索対象データ登録処理の動作例を示す図である。まず、登録対象データは例えば、タグによってデータ値が区切られるXML文書形式で記述することができる。分類条件定義としては、分類条件定義1、分類条件定義2というように、複数定義することができる。分類条件定義1では、分類対象項目が「/document/area」であり、分類条件として「指定値単位に分類」することが定義される。また、分類条件定義2では、分類対象項目が「/document/date」であり、分類条件として「月単位に分類」することが定義される。このような分類条件定義に対して、検索対象データ格納庫104として、分類対象項目「/document/area」が地域を表す指定値毎に分類され、分類割対象項目「/document/date」が年月を示す月毎に分類された複数の格納庫が作成され得る。各格納庫は、CSV形式やXML形式のファイルであったり、データベースの分類されたテーブルであったりする。今例えば、分類対象項目「/document/area」の指定値が「関東」、分類対象項目「/document/date」の指定値が「20080202」である登録対象データが登録されるとする。この場合、分類対象項目「/document/area」が「関東」に分類され、分類対象項目「/document/date」が「2008年2月」に分類される検索対象データ格納庫104に、上記登録対象データが登録される。   FIG. 3 is a diagram illustrating an operation example of search target data registration processing. First, registration target data can be described in, for example, an XML document format in which data values are delimited by tags. A plurality of classification condition definitions such as classification condition definition 1 and classification condition definition 2 can be defined. In the classification condition definition 1, the classification target item is “/ document / area”, and it is defined as “classified into specified value units” as the classification condition. In the classification condition definition 2, the classification target item is “/ document / date”, and it is defined that “classify by month” as the classification condition. For such a classification condition definition, as the search target data storage 104, the classification target item “/ document / area” is classified for each designated value representing a region, and the classification target item “/ document / date” is A plurality of hangars categorized for each month may be created. Each hangar may be a CSV or XML file, or a database classified table. Now, for example, it is assumed that registration target data in which the specified value of the classification target item “/ document / area” is “Kanto” and the specified value of the classification target item “/ document / date” is “20080202” is registered. In this case, the classification target item “/ document / area” is classified as “Kanto”, and the classification target item “/ document / date” is classified as “February 2008”. Data is registered.

次に、検索対象データ管理装置102において実行される検索対象データ特定処理について、図4に示される動作説明図に沿って説明する。
まず、検索要求者(要求元端末装置)からの検索要求では、検索式のみが記述されて、検索要求が発行される。図4において、検索要求は「条件1)」と表記されている。
Next, search target data specifying processing executed in the search target data management apparatus 102 will be described with reference to an operation explanatory diagram shown in FIG.
First, in the search request from the search requester (request source terminal device), only the search formula is described and the search request is issued. In FIG. 4, the search request is described as “condition 1)”.

検索要求を受信した検索制御装置101は、検索対象データ管理装置102に対して、検索式を指定し、検索対象ファイルの特定を依頼する。
依頼を受けた検索対象データ管理装置102は、下記の検索対象データ特定処理を実行する。
(1)検索制御装置101から検索式が受信される。図4では例えば、条件1)が受信される。
(2)受信された検索式の構文が解析され、その検索式中に、前述の検索対象データ登録処理に先だって事前に定義された分類条件定義中の分類対象項目が含まれているか確認される。
Upon receiving the search request, the search control apparatus 101 designates a search formula and requests the search target data management apparatus 102 to specify the search target file.
Upon receiving the request, the search target data management apparatus 102 executes the following search target data specifying process.
(1) A search expression is received from the search control apparatus 101. In FIG. 4, for example, condition 1) is received.
(2) The syntax of the received search expression is analyzed, and it is confirmed whether the search expression includes a classification target item in the classification condition definition defined in advance prior to the search target data registration process described above. .

(3)検索式中に分類対象項目が含まれている場合、その検索式から分類対象項目の値が取得される。そして、その分類対象項目が含まれる分類条件定義中の分類条件と上記取得された値とに基づいて、その値が属する検索対象データ格納庫104が特定される。検索対象データ格納庫104を特定する識別情報は、ファイル名であってもよいし、データベース中のテーブル名や、フォルダ名又はディレクトリ名であってもよい。図4では例えば、A〜Zの検索対象データ格納庫104のうち、A,B,及びCの検索対象データ格納庫104が特定される。   (3) When the classification target item is included in the search formula, the value of the classification target item is acquired from the search formula. Then, based on the classification condition in the classification condition definition including the classification target item and the acquired value, the search target data storage 104 to which the value belongs is specified. The identification information for specifying the search target data storage 104 may be a file name, a table name in the database, a folder name, or a directory name. In FIG. 4, for example, among the search target data storages 104 of A to Z, the search target data storages 104 of A, B, and C are specified.

(4)上記特定された検索対象データ格納庫104の識別情報が、検索制御装置101に返される。図4では例えば、A,B,Cという識別情報である。
(5)検索式中に何れの分類条件定義中の分類対象項目も含まれていない場合、検索対
象として全検索対象データを指示する情報が、検索制御装置101に返される。
(4) The identification information of the specified search target data storage 104 is returned to the search control apparatus 101. In FIG. 4, for example, the identification information is A, B, and C.
(5) When the classification target item in any classification condition definition is not included in the search formula, information indicating all search target data as a search target is returned to the search control apparatus 101.

上述の検索対象データ特定処理において、処理(2)における検索式の解析処理、及び処理(3)における検索対象データ格納庫104の特定処理のために、検索対象データ所在管理簿103を参照することができる。これについては後述する。   In the search target data specifying process described above, the search target data location management list 103 may be referred to for the search expression analysis process in the process (2) and the search target data storage 104 specifying process in the process (3). it can. This will be described later.

上述の検索対象データ管理装置102による検索対象データ特定処理を受けて検索制御装置101は、以下の処理を実行する。即ち、検索制御装置101は、条件1)に対する検索処理として、検索対象データ管理装置102から返された識別情報A,B,Cに対応する検索対象データ格納庫104のみを検索する検索依頼を、それぞれの格納庫に対応する検索処理装置105に対して並列に発行する。このとき、後述するように、検索制御装置101は、複数の検索要求者からの検索式を束ねて一括検索を依頼する処理を実行する。この結果、検索制御装置101は、各検索処理装置105から返される検索結果のうち、条件1)に対応する検索結果を取りまとめて結果1)を生成し、それを検索要求者に返信する。   In response to the search target data specifying process by the search target data management apparatus 102, the search control apparatus 101 executes the following process. That is, the search control apparatus 101 performs a search request for searching only the search target data storage 104 corresponding to the identification information A, B, C returned from the search target data management apparatus 102 as a search process for the condition 1). Issued in parallel to the search processing device 105 corresponding to the hangar. At this time, as will be described later, the search control apparatus 101 executes a process of requesting a batch search by bundling search formulas from a plurality of search requesters. As a result, the search control apparatus 101 collects the search results corresponding to the condition 1) among the search results returned from each search processing apparatus 105, generates a result 1), and returns it to the search requester.

ここで、検索が実行される検索対象データ格納庫104が複数のファイルや、データベースのテーブル、フォルダ又はディレクトリに分割されている。これにより、検索対象データのデータ量が増大しても、データ読込みに伴う応答時間の増大を抑制することができる。   Here, the search target data storage 104 to be searched is divided into a plurality of files, database tables, folders, or directories. Thereby, even if the data amount of search object data increases, the increase in the response time accompanying data reading can be suppressed.

また、検索制御装置101は、検索対象データ管理装置102から、検索依頼を発行しようとする検索式中の項目値が属する検索対象データの識別情報を受け取ることにより、検索対象データの検索範囲を自動的に絞り込むことができる。図4の例で説明するならば、条件1)に対する検索処理においては、A〜Zの検索対象データのうち、A,B,及びCのみの検索範囲401が指定される。この場合、検索要求者は、検索対象データの検索範囲401を知る必要はない。従って、検索対象データのデータ量が多くなっても、検索対象データの検索範囲を適切に指定することができ、無駄な検索処理が発生しない。   In addition, the search control apparatus 101 automatically determines the search range of the search target data by receiving from the search target data management apparatus 102 identification information of the search target data to which the item value in the search expression to be issued a search request belongs. Can be narrowed down. In the example of FIG. 4, in the search process for condition 1), the search range 401 of only A, B, and C is specified among the search target data of A to Z. In this case, the search requester does not need to know the search range 401 of the search target data. Therefore, even if the data amount of the search target data increases, the search range of the search target data can be appropriately specified, and useless search processing does not occur.

更に、検索制御装置101は、全ての検索対象データに対応する検索処理装置105を起動する必要はなく、図4の例の場合、A,B,Cの検索対象データに対応する検索処理装置105のみを起動すればよい。このため、1つの検索処理装置105が1つのトランザクションで実行する検索処理数を大幅に削減することができ、検索制御装置101から検索要求者への応答時間を大幅に短縮することができる。   Further, the search control device 101 does not need to start the search processing device 105 corresponding to all the search target data, and in the case of the example of FIG. 4, the search processing device 105 corresponding to the search target data A, B, C. Just start up. Therefore, the number of search processes executed by one search processing device 105 in one transaction can be greatly reduced, and the response time from the search control device 101 to the search requester can be greatly shortened.

図5は、検索対象データ特定処理の動作例を示す図である。今、検索要求者から、図5に示される検索式が発行されたとする。この検索式は、「2008年1月1日」から「2008年3月1日」よりも前の日付(/document/date)を有し、地域(/document/area)が「関東」で、店舗番号(/document/shopid)が「12345」である検索対象データの検索を要求している。この検索式は、検索制御装置101によって一定時間毎に取りまとめられて、検索対象データ管理装置102に通知される。検索対象データ管理装置102は、前述の検索対象データ特定処理を実行する。この結果、分類対象項目「/document/area」が「関東」に分類され、分類対象項目「/document/date」が「2008年1月」及び「2008年2月」に分類される検索対象データ格納庫104の識別情報が得られる。即ち、図5において、識別情報「kanto_200801」及び「kanto_200802」が得られる。これらの識別情報が、検索対象データ管理装置102から検索制御装置101に返される。これにより、検索制御装置101は、上記検索式に対しては、上記識別情報に対応する2つの検索対象データ格納庫104に対する検索処理装置105のみを指定すればよいことになる。   FIG. 5 is a diagram illustrating an operation example of the search target data specifying process. Assume that the search formula shown in FIG. 5 is issued from the search requester. This search formula has a date (/ document / date) before “January 1, 2008” to “March 1, 2008”, and the region (/ document / area) is “Kanto”. A search for data to be searched whose store number (/ document / shopid) is “12345” is requested. This search formula is compiled at regular intervals by the search control apparatus 101 and notified to the search target data management apparatus 102. The search target data management apparatus 102 executes the search target data specifying process described above. As a result, the classification target item “/ document / area” is classified as “Kanto”, and the classification target item “/ document / date” is classified as “January 2008” and “February 2008”. Identification information of the hangar 104 is obtained. That is, in FIG. 5, identification information “kanto — 200801” and “kanto — 200802” are obtained. Such identification information is returned from the search target data management apparatus 102 to the search control apparatus 101. As a result, the search control apparatus 101 need only specify the search processing apparatus 105 for the two search target data storages 104 corresponding to the identification information for the search formula.

図6は、図1の検索制御装置101が実行するマルチファイルの検索処理を示す動作説明図である。
検索制御装置101は、例えばサーバコンピュータ上の常駐プログラムとして実現され、以下の一連の処理を実行する。
FIG. 6 is an operation explanatory diagram showing multi-file search processing executed by the search control apparatus 101 of FIG.
The search control apparatus 101 is realized as a resident program on a server computer, for example, and executes the following series of processes.

(1)検索制御装置101はまず、検索要求者からの検索要求を受け付ける。検索制御装置101は、複数の検索要求者からの検索要求を受け付けることができる。図6の例では、検索制御装置101は、検索要求者1から条件1)を指定した検索要求、検索要求者2から条件2)を指定した検索要求、検索要求者3から条件3)を指定した検索要求を、それぞれ受け付ける。なお、各検索要求者からの検索要求では、1つの検索式が要求されてもよいし、全く異なる検索条件を記述した複数の検索式が一括して要求されてもよい。   (1) First, the search control apparatus 101 receives a search request from a search requester. The search control apparatus 101 can accept search requests from a plurality of search requesters. In the example of FIG. 6, the search control apparatus 101 specifies a search request specifying condition 1) from search requester 1, a search request specifying condition 2) from search requester 2, and a condition 3) from search requester 3 Each search request is accepted. In the search request from each search requester, one search expression may be requested, or a plurality of search expressions describing completely different search conditions may be requested in a lump.

(2)次に、検索制御装置101は、受け付けた各検索要求に含まれる各検索式毎に、検索対象データ管理装置102に検索対象データ特定処理を依頼する。この結果、図6の例では、条件1)の検索式についてはA及びB、条件2)の検索式についてはB及びC、条件3)の検索式についてはZという各検索対象データの範囲を示す各識別情報が、検索対象データ管理装置102から検索制御装置101に返される。   (2) Next, the search control device 101 requests the search target data management device 102 to perform search target data specifying processing for each search formula included in each received search request. As a result, in the example of FIG. 6, the search target data ranges of A and B for the search formula of condition 1), B and C for the search formula of condition 2), and Z for the search formula of condition 3) are obtained. Each piece of identification information shown is returned from the search target data management device 102 to the search control device 101.

(3)検索制御装置101は、ある一定時間ずつ、検索要求者からの各検索要求及びそれぞれに対応する識別情報を溜め込む。図6の例では、条件1,2,3に対応する各検索要求が溜め込まれる。ここで、ある一定時間は、待ち時間なし(0秒)でもよい。その待ち時間は、検索制御装置101において変更できるように構成することができる。   (3) The search control apparatus 101 accumulates each search request from the search requester and identification information corresponding to each search request for a certain period of time. In the example of FIG. 6, each search request corresponding to the conditions 1, 2, and 3 is accumulated. Here, there may be no waiting time (0 seconds) for a certain period of time. The waiting time can be configured to be changed in the search control apparatus 101.

(4)検索制御装置101は、ある一定時間の経過後、それまでに受け付けた検索要求の検索式を、識別情報によって識別される検索対象ファイル別に束ねる(検索要求の一体化)。図6の例では、検索対象データAについては条件1)が、検索対象データBについては条件1)及び2)が、検索対象データCについては条件2)が、検索対象データZについては条件3)が、それぞれ束ねられる。ここで、検索式の束ね処理(検索要求の一体化処理)においては、複数の検索式が1つの検索式に結合されるのではなく、複数の検索式がそのままの状態で保持されて、検索処理装置105に対して検索依頼が発行される。   (4) The search control apparatus 101 bundles the search formulas of the search requests that have been received so far after a certain period of time for each search target file identified by the identification information (integration of search requests). In the example of FIG. 6, condition 1) for search target data A, conditions 1) and 2) for search target data B, condition 2) for search target data C, and condition 3 for search target data Z are shown. ) Are bundled together. Here, in search expression bundling processing (integration processing of search requests), a plurality of search expressions are not combined into a single search expression, but a plurality of search expressions are held as they are and searched. A search request is issued to the processing device 105.

(5)検索制御装置101は、各検索処理装置105に、検索対象ファイル名と、そのファイルに対して束ねた複数の検索要求(検索式)、及びそれら複数の検索要求に対してそれぞれの検索結果を出力する出力ファイル名とを含む検索依頼を発行する。図6の例では、検索対象データA,B,C,及びZのそれぞれに対して1つずつの検索処理装置105が割り当てられているが、数が足りない場合には、1つの検索処理装置105に対して複数の依頼が順次発行されてもよい。   (5) The search control device 101 causes each search processing device 105 to search for the search target file name, a plurality of search requests (search formulas) bundled for the file, and the search requests. A search request including the output file name to output the result is issued. In the example of FIG. 6, one search processing device 105 is assigned to each of the search target data A, B, C, and Z. However, when the number is insufficient, one search processing device 105 is allocated. A plurality of requests may be sequentially issued to 105.

(6)検索制御装置101は、各検索処理装置105からの検索結果の応答を待ち合わせる。
(7)検索制御装置101は、各検索処理装置105から、各束ねた複数の検索要求に対する検索結果を受信し、それぞれの検索要求に対する検索結果を検索要求毎に振り分ける。
(6) The search control apparatus 101 waits for a response to the search result from each search processing apparatus 105.
(7) The search control apparatus 101 receives search results for a plurality of search requests bundled from each search processing apparatus 105, and distributes the search results for each search request for each search request.

(8)検索制御装置101は、検索要求が、複数の検索対象データ(例えばファイル)に対するものである場合、全ての検索対象データからの検索結果が得られるまで待ち合わせる。そして、検索制御装置101は、各検索要求毎に、検索結果が揃った時点で、検索
要求者に検索結果を通知する。図6の例では、条件1)、2)、3)の各検索要求に対して、結果1)、2)、3)の各検索結果が返される。
(8) When the search request is for a plurality of search target data (for example, files), the search control apparatus 101 waits until search results from all the search target data are obtained. Then, the search control apparatus 101 notifies the search requester of the search results when the search results are prepared for each search request. In the example of FIG. 6, the search results 1), 2), and 3) are returned for the search requests of the conditions 1), 2), and 3).

次に、図1の検索処理装置105の動作について説明する。
検索処理装置105は、検索制御装置101に対して1つのみが動作してもよいし、複数動作してもよい。また、検索処理装置105が動作するサーバコンピュータは、検索制御装置101と同じサーバコンピュータであってもよいし、別のものであってもよい。
Next, the operation of the search processing device 105 in FIG. 1 will be described.
Only one search processing apparatus 105 may operate for the search control apparatus 101, or a plurality of search processing apparatuses 105 may operate. Further, the server computer on which the search processing apparatus 105 operates may be the same server computer as the search control apparatus 101 or may be different.

検索処理装置105は、以下の一連の処理を実行する。
(1)検索処理装置105は、検索制御装置101から、検索依頼を受信する。
(2)検索処理装置105は、検索依頼の情報(検索対象ファイル名、1つ以上の検索要求(検索式)、各検索要求に対応して検索結果が出力される出力ファイル名)に基づいて、検索対象データに対して検索処理を実行する。
(3)検索処理装置105は、検索処理が終了したら、複数の検索要求に対するそれぞれの検索結果を出力した出力ファイル名を、検索制御装置101に送信する。
(4)検索処理装置105は、検索制御装置101からの次の検索依頼を待つ。
The search processing device 105 executes the following series of processes.
(1) The search processing device 105 receives a search request from the search control device 101.
(2) The search processing device 105 is based on search request information (a search target file name, one or more search requests (search formulas), and an output file name to which a search result is output corresponding to each search request). The search process is executed on the search target data.
(3) When the search processing is completed, the search processing device 105 transmits the output file name that outputs each search result for a plurality of search requests to the search control device 101.
(4) The search processing device 105 waits for the next search request from the search control device 101.

図7は、図2及び図3を用いて前述した図1の検索対象データ管理装置102による検索対象データ登録処理が、サーバコンピュータが検索対象データ登録処理プログラムを実行する処理として実現される場合の動作を示す動作フローチャートである。また、図8から図10は、この動作フローチャートにおいて使用される各データの構成例を示す図である。更に、図11及び図12は、この動作フローチャートによる処理例を示す図である。以下、これらの図面に沿って、検索対象データ登録処理の詳細について説明する。   FIG. 7 shows a case where the search target data registration process by the search target data management apparatus 102 of FIG. 1 described above with reference to FIGS. 2 and 3 is realized as a process in which the server computer executes the search target data registration process program. It is an operation | movement flowchart which shows operation | movement. FIGS. 8 to 10 are diagrams showing an example of the configuration of each data used in this operation flowchart. Further, FIG. 11 and FIG. 12 are diagrams showing processing examples according to this operation flowchart. Hereinafter, the details of the search object data registration process will be described with reference to these drawings.

まず図8は、検索対象データとして登録されるべきデータのデータ構成例を示す図である。図8(a)は、XML形式のデータ構成例であり、図8(b)は、CSV形式のデータ構成例である。実施形態では、どちらのデータ構成も登録可能である。   First, FIG. 8 is a diagram illustrating a data configuration example of data to be registered as search target data. FIG. 8A shows an example of an XML format data configuration, and FIG. 8B shows an example of a CSV format data configuration. In the embodiment, both data configurations can be registered.

次に図9(a)は、検索対象データ所在管理簿103(図1参照)の一部として含まれる、事前に定義される分類条件定義のデータ構成例を示す図である。このデータ構成例は、検索対象データ格納庫104が、ファイルとして構成される場合の例である。前述したように、分類条件定義は、複数定義することができる。そして、図9(a)に示されるデータ構成例は、1つの分類条件定義に対応するものである。   Next, FIG. 9A is a diagram illustrating a data configuration example of the classification condition definition defined in advance, which is included as a part of the search target data location management book 103 (see FIG. 1). This data configuration example is an example in which the search target data storage 104 is configured as a file. As described above, a plurality of classification condition definitions can be defined. The data configuration example shown in FIG. 9A corresponds to one classification condition definition.

図9(a)において、「分類条件定義名」には、分類条件定義の名称が設定される。
「データ形式」には、登録される検索対象データのデータ形式が設定される。ここでは、“CSV”又は“XML”の何れかの形式が設定可能である。
In FIG. 9A, the “classification condition definition name” is set with the name of the classification condition definition.
In the “data format”, the data format of the search target data to be registered is set. Here, either “CSV” or “XML” format can be set.

「格納庫の種別」には、検索対象データ格納庫104のデータ種別が設定される。図9(a)の例では、検索対象データ格納庫104はファイルとして実現されるため「FILE」が設定される。後述する図24の場合のように、検索対象データ格納庫104がデータベースのテーブルとして実現される場合には「DB」が設定される。   In the “type of storage”, the data type of the search target data storage 104 is set. In the example of FIG. 9A, “FILE” is set because the search target data storage 104 is realized as a file. As in the case of FIG. 24 described later, when the search target data storage 104 is realized as a database table, “DB” is set.

「分類条件項目名」「分類対象項目」「分類条件」は、複数組指定できる。
「分類条件項目名」には、分類条件の名称が設定される。
「分類対象項目」には、登録されるデータ中の分類対象となる項目が設定される。ここには、「データ形式」が”CSV”の場合には項目名が設定され、「データ形式」が”X
ML”の場合にはXMLのパスが設定される。
A plurality of sets of “classification condition item name”, “classification target item”, and “classification condition” can be designated.
In “classification condition item name”, the name of the classification condition is set.
In “classification target item”, an item to be classified in the registered data is set. Here, when “Data Format” is “CSV”, the item name is set, and “Data Format” is “X”.
In the case of “ML”, an XML path is set.

「分類条件」には、登録されるデータが格納される格納場所を決定するための条件が指定される。例えば、日付データによる期間指定の分類条件としては「年単位」「月単位」「日単位」等が設定可能である。また、範囲指定の分類条件としては例えば、最大値と最小値で範囲が設定可能である。また、分類条件として「値指定」が設定された場合には、分類項目の値で分類が行われる。   In the “classification condition”, a condition for determining a storage location where registered data is stored is specified. For example, “yearly”, “monthly”, “dayly” or the like can be set as a classification condition for specifying a period by date data. In addition, as a classification condition for specifying a range, for example, a range can be set with a maximum value and a minimum value. When “value specification” is set as the classification condition, the classification is performed based on the value of the classification item.

次に、図9(a)に示されるような分類条件定義に基づいて、検索対象データ所在管理簿103(図1参照)の一部として含まれる、分類対象項目管理テーブルが、図9(b)に示されるようなデータ構成で作成される。実際にはこのテーブルは、データベースのテーブルとして定義される。   Next, based on the classification condition definition as shown in FIG. 9A, the classification target item management table included as a part of the search target data location management list 103 (see FIG. 1) is shown in FIG. It is created with the data structure as shown in In practice, this table is defined as a database table.

図9(b)において、901及び902等としては、図9(a)の「分類対象項目」及び「分類条件」のそれぞれに対応する項目が設定される。例えば、「分類条件」が「値指定」の場合、901として値を格納するカラムが定義される。図9(b)の901では「地域」というカラムが定義される。また、「分類条件」が期間指定または範囲指定の場合、902としてその範囲を示す最小値及び最大値を格納する各カラムが定義される。図9(b)の902では「日付_MIN」「日付_MAX」の各カラムが定義される。更に、903として、検索対象ファイル名を格納するための「検索対象ファイル」カラムが、必ず1つ定義される。   In FIG. 9B, items corresponding to the “classification target item” and “classification condition” in FIG. 9A are set as 901 and 902, for example. For example, when “classification condition” is “value specification”, a column for storing a value is defined as 901. In 901 of FIG. 9B, a column “region” is defined. When the “classification condition” is a period designation or a range designation, each column for storing a minimum value and a maximum value indicating the range is defined as 902. In FIG. 9B 902, columns of “date_MIN” and “date_MAX” are defined. Furthermore, as “903”, one “search target file” column for storing the search target file name is always defined.

以上のようにして作成された検索対象データ所在管理簿103(分類条件定義及び分類対象項目管理テーブル)を使って、図7の動作フローチャートに基づいて、検索対象データ登録処理が実行される。   Using the search target data location management list 103 (classification condition definition and classification target item management table) created as described above, search target data registration processing is executed based on the operation flowchart of FIG.

まず、登録データの1レコード分が読み込まれる(図7のステップS701)。登録されるデータは例えば、図10に示されるようなCSV形式のデータであり、1つのファイルに複数の登録レコードを含ませることができる。   First, one record of registered data is read (step S701 in FIG. 7). The data to be registered is, for example, data in the CSV format as shown in FIG. 10, and a plurality of registration records can be included in one file.

次に、上記登録データのレコードが解析される(図7のステップS702)。
上記解析の結果、そのデータレコード中に、分類条件定義中の分類対象項目(図9(a)参照)が存在するか否かが判定される(図7のステップS703)。
Next, the record of the registration data is analyzed (step S702 in FIG. 7).
As a result of the above analysis, it is determined whether or not a classification target item (see FIG. 9A) in the classification condition definition exists in the data record (step S703 in FIG. 7).

データレコード中に分類対象項目が存在しステップS703の判定がYESの場合、データレコードから分類対象項目の値が取得される。そして、その分類対象項目が含まれる分類条件定義中の分類条件と上記取得された値とに基づいて、検索対象データ所在管理簿103中の分類対象項目管理テーブル(図9(b)参照)への問合せが行われる(図7のステップS704)。   If a classification target item exists in the data record and the determination in step S703 is YES, the value of the classification target item is acquired from the data record. Then, based on the classification condition in the classification condition definition including the classification target item and the acquired value, to the classification target item management table (see FIG. 9B) in the search target data location management book 103. Is made (step S704 in FIG. 7).

そして、この問合せの結果、分類対象項目管理テーブル上でレコードが検索できたか否か、即ち、データレコード中の分類対象項目の値に対応する検索対象データ格納庫104が存在するか否かが判定される(図7のステップS705)。   Then, as a result of this inquiry, it is determined whether or not a record can be searched on the classification target item management table, that is, whether or not the search target data storage 104 corresponding to the value of the classification target item in the data record exists. (Step S705 in FIG. 7).

分類対象項目管理テーブルの登録内容は、検索対象データの登録が進むと、例えば図10に示されるようなものになる。このテーブルの登録内容は、「北海道」「関東」「中部」といった地域別、及び「2008年01月01日〜2008年01月31日」「2008年02月01日〜2008年02月29日」といった月別に、それぞれ検索対象データ格納庫104である検索対象ファイルが作成され分類されていることを示している。このテーブルの登録内容は、初期状態では登録レコードは存在しないが、登録されるべき検索対象データの登録が進むに従って、検索対象ファイルが作成されるのに合わせて、それに対応するレコードが順次登録されてゆく。   The registration contents of the classification target item management table are as shown in FIG. 10, for example, as search target data registration proceeds. The registration contents of this table include “Hokkaido”, “Kanto”, “Chubu”, and “January 1, 2008 to January 31, 2008”, “February 01, 2008 to February 29, 2008”. ”Indicates that the search target files that are the search target data storages 104 are created and classified for each month. As for the registration contents of this table, there is no registration record in the initial state, but as the search target data to be registered progresses, the corresponding records are sequentially registered as the search target file is created. Go.

今例えば、CSVファイル形式の登録対象データとして、図11に示されるようなデータレコード「“20080101”,“北海道”,“00126”,“小樽店”,・・・」が登録されようとしているとする。この登録対象データについて、図7のステップS704において、分類対象項目「area」の値として“北海道”が、また分類対象項目「date」の値として“20080101”が抽出される。次に、図9(a)の分類条件定義が参照される。この結果、図7のステップS704において、例えば図10に示される分類対象項目管理テーブル上で、下記の条件で問合せが実行される。   Now, for example, as data to be registered in the CSV file format, a data record “20080101”, “Hokkaido”, “00126”, “Otaru store”,... To do. In step S704 in FIG. 7, “Hokkaido” is extracted as the value of the classification target item “area” and “20080101” is extracted as the value of the classification target item “date” for the registration target data. Next, the classification condition definition in FIG. As a result, in step S704 of FIG. 7, for example, an inquiry is executed on the classification target item management table shown in FIG. 10 under the following conditions.

・「地域」カラムの値が分類対象項目「area」の値“北海道”に等しい
・かつ、「日付_MIN」カラムの値が分類対象項目「date」の値“20080101”以下である。
・かつ、「日付_MAX」カラムの値が分類対象項目「date」の値“20080101”以上である。
The value of the “region” column is equal to the value “Hokkaido” of the classification target item “area”. The value of the “date_MIN” column is less than or equal to the value “2008011” of the classification target item “date”.
In addition, the value of the “date_MAX” column is greater than or equal to the value “20080101” of the classification target item “date”.

この結果、例えば図10の分類対象項目管理テーブル上の先頭のレコードが抽出され、そのレコードの「検索対象ファイル」カラムから、検索対象データ格納庫104である検索対象ファイル名として「hokkaido_200801.csv」が得られる。これにより、図7のステップS705の判定がYESとなって、上記検索対象ファイル名に対応する検索対象ファイル(検索対象データ格納庫104)に、登録対象データが追加される(図7のステップS708)。今、検索対象データ格納庫104である検索対象ファイルがCSV形式の場合には、例えば図11に示されるような形式で、検索対象ファイル「hokkaido_200801.csv」へ登録対象データが追記される。   As a result, for example, the first record on the classification target item management table of FIG. 10 is extracted, and “hokaido_200801.csv” is set as the search target file name of the search target data storage 104 from the “search target file” column of the record. can get. Accordingly, the determination in step S705 of FIG. 7 is YES, and the registration target data is added to the search target file (search target data storage 104) corresponding to the search target file name (step S708 of FIG. 7). . If the search target file that is the search target data storage 104 is in the CSV format, the registration target data is added to the search target file “hokaido_200801.csv” in the format shown in FIG. 11, for example.

なお、登録対象データ及び検索対象ファイル(=検索対象データ格納庫104)はXML形式であってもよく、その場合には例えば図12に示されるような形式で、XML形式の登録対象データがXML形式の検索対象ファイルに追記される。   The registration target data and the search target file (= search target data storage 104) may be in the XML format. In this case, for example, the registration target data in the XML format is in the XML format as shown in FIG. Is added to the search target file.

一方、図7のステップS704の問合せの結果、分類対象項目管理テーブル上でレコードが抽出されなかった場合には、図7のステップS705の判定がNOとなる。この結果、問合せが行われた分類対象項目の値に対応する検索対象データ格納庫104である検索対象ファイルが新規に作成される(図7のステップS706)。   On the other hand, if no record is extracted on the classification target item management table as a result of the inquiry in step S704 in FIG. 7, the determination in step S705 in FIG. 7 is NO. As a result, a search target file that is the search target data storage 104 corresponding to the value of the categorized target item that has been queried is newly created (step S706 in FIG. 7).

続いて、分類対象項目管理テーブルに、図10に示されるようにして、上記問合せが行われた分類対象項目の値に対応するレコードが登録され、そのレコードの「検索対象ファイル」カラムに、上記新規作成された検索対象データ格納庫104である検索対象ファイルのファイル名が登録される(図7のステップS707)。   Subsequently, as shown in FIG. 10, a record corresponding to the value of the categorized target item for which the inquiry has been made is registered in the categorized target item management table. The file name of the search target file that is the newly created search target data storage 104 is registered (step S707 in FIG. 7).

そして、上記新規作成された検索対象ファイルに、登録対象データが追加される(図7のステップS708)。
前述の図7のステップS703の判定において、データレコード中に分類対象項目が存在せず、その判定がNOとなった場合には、予め作成されている分類対象無しに対応する全検索対象ファイル(全検索対象データ格納庫)に、登録対象データが格納される(図7のステップS709)。
Then, registration target data is added to the newly created search target file (step S708 in FIG. 7).
In the determination in step S703 of FIG. 7 described above, if the classification target item does not exist in the data record and the determination is NO, all search target files corresponding to no classification target created in advance ( The registration target data is stored in (all search target data storage) (step S709 in FIG. 7).

以上説明した、図7のステップS701からS709までの一連の処理が、登録対象デ
ータの各データレコード数分だけ繰り返し実行される(図7のステップS710)。
図13は、図4及び図5を用いて前述した図1の検索対象データ管理装置102による検索対象データ特定処理が、サーバコンピュータが検索対象データ特定処理プログラムを実行する処理として実現される場合の動作を示す動作フローチャートである。また、図14及び図15は、この動作フローチャートにおいて使用される各データの構成例を示す図である。更に、図16及び図17は、この動作フローチャートによる処理例を示す図である。以下、これらの図面に沿って、検索対象データ特定処理の詳細について説明する。
The above-described series of processing from step S701 to S709 in FIG. 7 is repeatedly executed by the number of data records of registration target data (step S710 in FIG. 7).
FIG. 13 shows a case where the search target data specifying process by the search target data management apparatus 102 of FIG. 1 described above with reference to FIGS. 4 and 5 is realized as a process in which the server computer executes the search target data specifying process program. It is an operation | movement flowchart which shows operation | movement. FIG. 14 and FIG. 15 are diagrams showing an example of the configuration of each data used in this operation flowchart. Further, FIGS. 16 and 17 are diagrams showing a processing example according to this operation flowchart. The details of the search target data specifying process will be described below with reference to these drawings.

この処理においては、前述の検索対象データ登録処理において作成された検索対象データ所在管理簿103(分類条件定義及び分類対象項目管理テーブル)が使用される。
まず、検索制御装置から渡された検索式が解析される(図13のステップS1301)(図16参照)。
In this process, the search target data location management list 103 (classification condition definition and classification target item management table) created in the search target data registration process described above is used.
First, the search expression delivered from the search control device is analyzed (step S1301 in FIG. 13) (see FIG. 16).

上記解析の結果、その検索式中に、分類条件定義中の分類対象項目(図9(a)参照)が存在するか否かが判定される(図13のステップS1302)。
検索式中に分類対象項目が存在しステップS1302の判定がYESの場合、検索式中から1つの分類対象項目の値が選択される。そして、その分類対象項目が含まれる分類条件定義中の分類条件(図9(a)参照)と上記取得された値とに基づいて、検索対象データ所在管理簿103中の分類対象項目管理テーブル(図9(b)参照)に対して問合せを行うための問合せ条件が決定される(図13のステップS1303)。
As a result of the above analysis, it is determined whether or not a classification target item (see FIG. 9A) in the classification condition definition exists in the search formula (step S1302 in FIG. 13).
If there is a classification target item in the search formula and the determination in step S1302 is YES, the value of one classification target item is selected from the search formula. Then, based on the classification condition in the classification condition definition (see FIG. 9A) including the classification target item and the acquired value, the classification target item management table (in the search target data location management book 103) ( Inquiry conditions for making an inquiry to (see FIG. 9B) are determined (step S1303 in FIG. 13).

上記決定された問合せ条件に従って、検索対象データ所在管理簿103を構成する分類対象項目管理テーブルに対して問合せが実行される(図13のステップS1304)(図16参照)。   In accordance with the determined inquiry condition, an inquiry is executed on the classification object item management table constituting the search object data location management list 103 (step S1304 in FIG. 13) (see FIG. 16).

この結果、分類対象項目管理テーブルから抽出されたレコードに対応させて、ヒットフラグが設定される(図13のステップS1305)。
今例えば、図14(a)に示されるような検索式が処理されている場合、その検索式から抽出される分類対象項目の値と問合せ条件は図14(b)に示される如くとなる。更に、図14(c)に示されるように、検索式から1つの分類対象項目「date」の値「20080221」が選択され、それに対応して「日付_MAXが“20080221”以上」という問合せ条件が決定される。この問合せ条件に基づいて図14(c)に示されるように分類対象項目管理テーブルに対して問合せが実行される。この結果、図14(c)の判定結果Aとして示されるようにして、分類対象項目管理テーブルから抽出されたレコードに対してヒットフラグが設定される。判定結果A中の「○」印が付いたレコードが、ヒットフラグが設定されるレコードである。なお、ヒットフラグの設定は例えば、オンメモリ上の配列データとして実現できる。
As a result, a hit flag is set corresponding to the record extracted from the classification target item management table (step S1305 in FIG. 13).
Now, for example, when a search expression as shown in FIG. 14A is processed, the values of the classification target items extracted from the search expression and the query conditions are as shown in FIG. 14B. Further, as shown in FIG. 14C, the value “20080221” of one classification target item “date” is selected from the search formula, and the query condition “date_MAX is“ 20080221 ”or more” is correspondingly selected. It is determined. Based on this query condition, a query is executed on the classification target item management table as shown in FIG. As a result, as shown as the determination result A in FIG. 14C, a hit flag is set for the record extracted from the classification target item management table. A record with a “◯” mark in the determination result A is a record for which a hit flag is set. The hit flag can be set as array data on the on-memory, for example.

以上の図13のステップS1303からS1305までの一連の処理が、検索式中から選択される分類対象項目の数分だけ繰返し実行される。
図14(c)の例では、判定結果B、判定結果Cの順に、判定結果Aの場合と同様のヒットフラグの設定処理が実行される。
The series of processing from step S1303 to S1305 in FIG. 13 is repeatedly executed for the number of classification target items selected from the search formula.
In the example of FIG. 14C, the same hit flag setting process as in the case of the determination result A is executed in the order of the determination result B and the determination result C.

検索式中の全ての分類対象項目に対するヒットフラグの設定が完了した後、図13のステップS1307からS1312の一連の処理によって、検索式の論理演算子に基づいて分類対象項目毎のヒットフラグが判定される。これにより、検索式が対象とする検索対象データ格納庫104である検索対象ファイルを特定するための処理が実行される。   After the setting of the hit flag for all the classification target items in the search formula is completed, the hit flag for each classification target item is determined based on the logical operator of the search formula by a series of processing in steps S1307 to S1312 in FIG. Is done. Thereby, the process for specifying the search object file which is the search object data storage 104 targeted by the search expression is executed.

まず、検索式中の複数の分類対象項目の論理演算子に基づいて、分類対象項目毎のヒットフラグ間の判定論理が生成される(図13のステップS1307)。例えば図14の例
では、図14(a)に示される検索式内の論理演算子に基づいて、図14(c)に示される判定結果A,B,Cにおいて全てヒットフラグが設定されているレコードを特定レコードとする判定論理が生成される。即ち、図14(c)に示されるように、判定結果A,B,Cにおいて全て「○」印が設定されているレコード(「結果」欄に「○」印が設定されているレコード)が、特定レコードとして選択されることになる。
First, determination logic between hit flags for each classification target item is generated based on logical operators of a plurality of classification target items in the search formula (step S1307 in FIG. 13). For example, in the example of FIG. 14, hit flags are all set in the determination results A, B, and C shown in FIG. 14C based on the logical operators in the search expression shown in FIG. Decision logic is generated with the record as a specific record. That is, as shown in FIG. 14 (c), in the determination results A, B, and C, there are records for which “◯” marks are all set (records for which “◯” marks are set in the “Result” column). Will be selected as a specific record.

上記判定論理の生成の後、少なくとも1つのヒットフラグが設定されているレコードが1つ抽出される(図13のステップS1308)。
次に、抽出されたレコードに設定されている各ヒットフラグに対して、ステップS1307で生成された判定論理が実施される(図13のステップS1309)。
After the determination logic is generated, one record in which at least one hit flag is set is extracted (step S1308 in FIG. 13).
Next, the determination logic generated in step S1307 is performed on each hit flag set in the extracted record (step S1309 in FIG. 13).

この結果、抽出されたレコードが特定すべきレコードであるか否かが判定される(図13のステップS1310)。
ステップS1310の判定がYESならば、抽出されたレコードが特定レコードとして記憶される(図13のステップS1311)。
ステップS1310の判定がNOならば、抽出されたレコードは特定レコードとはされない。
As a result, it is determined whether or not the extracted record is a record to be specified (step S1310 in FIG. 13).
If the determination in step S1310 is YES, the extracted record is stored as a specific record (step S1311 in FIG. 13).
If the determination in step S1310 is NO, the extracted record is not a specific record.

以上のステップS1308からS1311までの一連の処理が、少なくとも1つのヒットフラグが設定されているレコードが順次抽出されながら、レコード毎に実行される(図13のステップS1312)。   The series of processing from step S1308 to S1311 is executed for each record while sequentially extracting records in which at least one hit flag is set (step S1312 in FIG. 13).

以上の処理の結果、最終的に特定レコードとして記憶されている各レコードの「検索対象ファイル」カラムに登録されている各検索対象ファイル名が、図1の検索対象データ管理装置102から検索制御装置101に通知され、検索対象データ特定処理が終了する(図13のステップS1313)(図16参照)。   As a result of the above processing, each search target file name registered in the “search target file” column of each record finally stored as a specific record is retrieved from the search target data management apparatus 102 of FIG. 101 is notified, and the search target data specifying process ends (step S1313 in FIG. 13) (see FIG. 16).

図14(c)の例では、最終的に「kanto_200802.csv」及び「kanto_200803.csv」という2つの検索対象ファイルが特定され、図1の検索制御装置101に通知される。   In the example of FIG. 14C, two search target files “kanto_200802.csv” and “kanto_200803.csv” are finally identified and notified to the search control apparatus 101 of FIG.

図15は、より複雑な検索式に対する問合せ例を示す図である。この例では、図15(a)に示される検索式に対して、その検索式から抽出される分類対象項目の値と問合せ条件は図15(b)に示される如くとなる。これより、図15(c)に示されるように、判定結果AからEまでのそれぞれに対してヒットフラグが設定される。そして、検索式に基づくヒットフラグの判定論理は、AとBのヒットフラグ(○)が全て付いているレコード、又は、CとDのヒットフラグ(○)が全て付いているレコードのうち、Eのヒットフラグ(○)が付いているレコードが、特定レコードとなる。従って、これらの特定レコードより、検索対象ファイル名として、「kanto_200801.csv」及び「kanto_200803.csv」が通知される。   FIG. 15 is a diagram illustrating an example of a query for a more complicated search expression. In this example, with respect to the search formula shown in FIG. 15A, the values of the classification target items extracted from the search formula and the query conditions are as shown in FIG. 15B. Thus, as shown in FIG. 15C, hit flags are set for the respective determination results A to E. The determination logic of the hit flag based on the search expression is that E of all the records with the A and B hit flags (◯) or the records with all the C and D hit flags (◯). A record with a hit flag (◯) is a specific record. Therefore, “kanto — 200801.csv” and “kanto — 200803.csv” are notified as search target file names from these specific records.

図16は、検索対象データ格納庫104の検索対象ファイルが、CSVファイルとして構成されている場合の上記処理の流れを示している。これに対して、検索対象ファイルがXMLファイルの場合には、図17に示されるように、分類対象項目の指定方式がXML方式による記述になるだけで、基本的な処理の流れはCSVファイルの場合と同様である。   FIG. 16 shows the flow of the above process when the search target file in the search target data storage 104 is configured as a CSV file. On the other hand, when the search target file is an XML file, as shown in FIG. 17, only the description method of the classification target item is described by the XML method, and the basic processing flow is that of the CSV file. Same as the case.

なお、図13のステップ1301での検索式の解析処理の結果、その検索式には分類条件定義中の分類対象項目が含まれていないと判定されてステップS1302の判定がNOとなった場合には、以下の処理が実行される。即ち、全検索の対象となるファイル名が検
索制御装置101に通知されて、検索対象データ特定処理が終了する(図13のステップS1314)。
Note that, as a result of the search expression analysis processing in step 1301 of FIG. 13, it is determined that the search expression does not include the classification target item in the classification condition definition, and the determination in step S1302 is NO. The following processing is executed. That is, the search control apparatus 101 is notified of the names of files to be searched, and the search target data specifying process ends (step S1314 in FIG. 13).

図18は、図6を用いて前述した図1の検索制御装置101によるマルチファイルの検索処理の一部が、サーバコンピュータが検索処理プログラムを実行する処理として実現される場合の動作を示す動作フローチャートである。また、図19は、この動作フローチャートにおいて使用される各データの構成例を示す図である。更に、図18は、この動作フローチャートの動作説明図である。以下、これらの図面に沿って、検索処理の詳細について説明する。   FIG. 18 is an operation flowchart showing an operation when a part of the multi-file search process by the search control apparatus 101 of FIG. 1 described above with reference to FIG. 6 is realized as a process in which the server computer executes the search process program. It is. FIG. 19 is a diagram showing a configuration example of each data used in this operation flowchart. Further, FIG. 18 is an operation explanatory diagram of this operation flowchart. The details of the search process will be described below with reference to these drawings.

まず、特には図示しないが、図6において前述したように、検索制御装置101は、複数の検索要求者からの検索要求を順次受け付けることができる。そして、検索制御装置101は、受け付けた各検索要求に含まれる検索式毎に、検索対象データ管理装置102に検索対象データ特定処理を依頼する。この結果、検索対象とすべき検索対象ファイル名が、検索対象データ管理装置102から検索制御装置101に返される。   First, although not particularly illustrated, as described above with reference to FIG. 6, the search control apparatus 101 can sequentially receive search requests from a plurality of search requesters. Then, the search control apparatus 101 requests the search target data management apparatus 102 to perform search target data specifying processing for each search formula included in each received search request. As a result, the search target file name to be searched is returned from the search target data management apparatus 102 to the search control apparatus 101.

検索制御装置101は、検索要求毎に、図20(a)に示される要求元情報管理表を保持する。この表には、検索要求毎に、要求元(端末装置)を特定する要求元IDと、検索式の記憶アドレスへのポインタと、検索対象データ管理装置102から返答されたその検索要求が対象とする検索対象ファイル名の記憶アドレスへのポインタが保持される。要求元情報管理表は例えば、構造体データとして実現することができる。   The search control apparatus 101 holds a request source information management table shown in FIG. 20A for each search request. This table includes, for each search request, a request source ID for specifying a request source (terminal device), a pointer to a storage address of a search expression, and the search request returned from the search target data management device 102. A pointer to the storage address of the file name to be searched is held. The request source information management table can be realized as structure data, for example.

この結果、図19の上半分に示されるように、検索制御装置101は、要求元情報管理表によって、検索要求元毎に、検索式と、検索対象データ管理装置102から返答された1つ以上の検索対象ファイル名を管理することになる。   As a result, as shown in the upper half of FIG. 19, the search control apparatus 101 uses the request source information management table for each search request source and one or more returned from the search target data management apparatus 102. The search target file name is managed.

以上の管理を実行しながら、検索制御装置101は更に、図18に示される動作フローチャートのプログラムを実行する。
検索制御装置101は、前述したように、ある一定時間ずつ、各検索要求元からの検索要求を、上記要求元情報管理表の形式で溜め込む。
While executing the above management, the search control apparatus 101 further executes the program of the operation flowchart shown in FIG.
As described above, the search control apparatus 101 accumulates the search requests from each search request source in the format of the request source information management table every certain time.

そこでまず、特には図示しないタイマ等の手段を用いて、一定時間検索要求が溜め込まれたか否かが判定される(図18のステップS1801)。
一定時間が経過した場合、図18のステップS1802からS1808の一連の処理によって、検索対象ファイル毎に、各検索対象ファイルにアクセスする検索要求の検索式が束ねられる。
Therefore, it is first determined whether or not a search request has been accumulated for a certain period of time, particularly using means such as a timer (not shown) (step S1801 in FIG. 18).
When a certain time has elapsed, a search request search expression for accessing each search target file is bundled for each search target file by a series of processes in steps S1802 to S1808 in FIG.

これを実現するために、検索制御装置101は、図20(b)に示される検索処理管理表を保持する。この表には、検索対象ファイル毎に、その検索対象ファイルを検索対象として使用する検索要求に関する情報(検索要求情報)へのポインタが保持される。検索要求情報は更に、図20(a)の要求元情報管理表から参照される検索式の記憶アドレスと同一アドレスへのポインタ(図中「丸付数字1」〜「丸付数字3」で表示)、検索結果が出力される出力ファイル名を保持する。検索処理管理表及び検索要求情報は例えば、構造体データとして実現することができる。   In order to realize this, the search control apparatus 101 holds a search processing management table shown in FIG. In this table, for each search target file, a pointer to information (search request information) related to a search request that uses the search target file as a search target is held. The search request information is further indicated by pointers to the same address as the storage address of the search formula referenced from the request source information management table of FIG. 20A ("circled number 1" to "circled number 3" in the figure). ), Holds the output file name where the search results are output. The search processing management table and the search request information can be realized as structure data, for example.

この検索処理管理表により、図19の下半分に示されるように、検索対象ファイル毎に、その検索対象ファイルを検索対象として使用する検索要求の検索式が紐づけられて束ねられることになる。   With this search processing management table, as shown in the lower half of FIG. 19, a search request search expression that uses the search target file as a search target is linked and bundled for each search target file.

以下、この束ね処理を実現する図18のステップS1802からS1808の一連の処
理について説明する。
まず、一定時間溜め込まれていた1つの検索要求に対応する要求元情報管理表(図20(a))が参照されることにより、その検索要求に対応する検索対象ファイル名が1つ取得される(図18のステップS1802)。
Hereinafter, a series of processes in steps S1802 to S1808 in FIG. 18 for realizing this bundling process will be described.
First, by referring to the request source information management table (FIG. 20A) corresponding to one search request that has been accumulated for a certain period of time, one search target file name corresponding to the search request is acquired. (Step S1802 in FIG. 18).

次に、その取得された検索対象ファイル名によって、検索処理管理表(図20(b))が検索される(図18のステップS1803)。
そして、上記検索対象ファイル名に対応する検索処理管理表が存在するか否かが判定される(図18のステップS1804)。
Next, the search processing management table (FIG. 20B) is searched based on the acquired search target file name (step S1803 in FIG. 18).
Then, it is determined whether or not a search processing management table corresponding to the search target file name exists (step S1804 in FIG. 18).

もし、上記検索対象ファイル名に対応する検索処理管理表が存在せずステップS1804の判定がNOとなったら、上記検索対象ファイル名に対応する検索処理管理表が作成される(図18のステップS1805)。   If no search processing management table corresponding to the search target file name exists and the determination in step S1804 is NO, a search processing management table corresponding to the search target file name is created (step S1805 in FIG. 18). ).

続いて、図18のステップS1806において、ステップS1803にて検索に成功した検索処理管理表又はステップS1805にて新たに作成された検索処理管理表に、新たに検索要求情報が作成されて結合される(図20(b)参照)。この検索要求情報には、現在処理中の検索要求の検索式の記憶アドレスへのポインタと、検索結果が出力される出力ファイル名が設定される。上記ポインタは、現在処理中の検索要求の要求元情報管理表(図20(a))から得ることができる。   Subsequently, in step S1806 of FIG. 18, search request information is newly created and combined with the search processing management table that has been successfully searched in step S1803 or the search processing management table that has been newly created in step S1805. (See FIG. 20 (b)). In this search request information, a pointer to the storage address of the search expression of the search request currently being processed and the output file name to which the search result is output are set. The pointer can be obtained from the request source information management table (FIG. 20A) of the search request currently being processed.

以上の処理により、現在処理中の検索要求において選択された1つの検索対象ファイルについて、その検索対象ファイルに現在処理中の検索要求の検索式が束ねられる。
次に、図18のステップS1802の処理に戻り、現在処理中の検索要求に対応する要求元情報管理表(図20(a))が再度参照されることにより、その検索要求に対応する他の検索対象ファイル名が更に取得される。そして、その新たに選択された検索対象ファイルに対して、現在処理中の検索要求の検索式を束ねる処理が、上記と同様にして実行される。このような処理が、現在処理中の検索要求に対応する要求元情報管理表(図20(a))上で、全ての検索対象ファイルが選択されるまで繰り返し実行される(図18のステップS1807)。
With the above processing, for one search target file selected in the search request currently being processed, the search expression of the search request currently being processed is bundled in the search target file.
Next, returning to the process of step S1802 in FIG. 18, the request source information management table (FIG. 20A) corresponding to the search request currently being processed is referred again, so that another request corresponding to the search request is returned. The search target file name is further acquired. Then, the process of bundling the search expressions of the search request currently being processed is executed in the same manner as described above for the newly selected search target file. Such a process is repeatedly executed until all the search target files are selected on the request source information management table (FIG. 20A) corresponding to the search request currently being processed (step S1807 in FIG. 18). ).

このようにして1つの検索要求に対して、それが使用する各検索対象ファイルに、その検索要求を束ねる処理が完了したら、図18のステップS1802の処理に戻り、一定時間溜め込まれている他の検索要求について、上記と同様の処理が実行される。このような処理が、一定時間溜め込まれた全ての検索要求について処理されるまで繰り返し実行される(図18のステップS1808)。   In this way, when the process of bundling the search requests for each search target file used for one search request is completed, the process returns to the process of step S1802 in FIG. The same processing as described above is executed for the search request. Such a process is repeatedly executed until it is processed for all the search requests accumulated for a certain time (step S1808 in FIG. 18).

そして、一定時間溜め込まれた全ての検索要求について処理が完了すると、図18のステップS1801の次の一定時間の待機処理に戻る。
以上の処理により、図19において例えば、検索対象ファイル「D:¥data¥kanto_200801.csv」には、要求元1の検索式のみが束ねられる。また、検索対象ファイル「D:¥data¥kanto_200803.csv」等には、要求元2の検索式のみが束ねられる。一方、検索対象ファイル「D:¥data¥kanto_200805.csv」等には、要求元2と要求元3の検索式が束ねられる。
When the processing is completed for all the search requests accumulated for a certain period of time, the process returns to the waiting process for a certain period of time after step S1801 in FIG.
With the above processing, for example, in FIG. 19, only the search expression of the request source 1 is bundled in the search target file “D: \ data \ kanto — 200801.csv”. In addition, only the search expression of the request source 2 is bundled in the search target file “D: \ data \ kanto — 200803.csv” or the like. On the other hand, in the search target file “D: \ data \ kanto — 200805.csv”, the search expressions of the request source 2 and the request source 3 are bundled.

以上のようにして、図1の検索制御装置101において、検索対象ファイル毎の束ね処理が完了すると、検索制御装置101は、図20(b)の検索処理管理表を順次参照する。これにより、検索制御装置101は、検索対象ファイル名と、そのファイルに対して束ねられている1つ以上の検索式、及び各検索式に対する検索結果を出力する出力ファイル名を含む検索依頼を順次生成し、それを適切な検索処理装置105(図1)に対して順次発行する。   As described above, when the bundling process for each search target file is completed in the search control apparatus 101 of FIG. 1, the search control apparatus 101 sequentially refers to the search process management table of FIG. As a result, the search control apparatus 101 sequentially receives a search request including a search target file name, one or more search expressions bundled for the file, and an output file name that outputs a search result for each search expression. And sequentially issue them to the appropriate search processing device 105 (FIG. 1).

なお、検索制御装置101と検索処理装置105が同一のサーバコンピュータ上で実行される場合には、上記検索依頼における検索式の通知は、各検索式の記憶アドレスへのポインタ情報の通知によって行われるように実現されてもよい。   When the search control device 101 and the search processing device 105 are executed on the same server computer, the search formula is notified in the search request by notifying pointer information to the storage address of each search formula. It may be realized as follows.

この結果、例えば図21に示されるように、#1の検索処理装置105に対しては、検索対象ファイル名「D:¥data¥kanto_200801.csv」と、要求元1の検索式と、要求元1に対する出力ファイル名を含む検索依頼が発行される。これを受けて#1の検索処理装置105は、検索対象データ格納庫104(図1)である検索対象ファイル「D:¥data¥kanto_200801.csv」に対して、要求元1の検索式による検索処理を実行する。そして、#1の検索処理装置105は、要求元1の検索式による検索の結果を、要求元1に対して指定された出力ファイル名の検索結果ファイルに出力する。   As a result, for example, as shown in FIG. 21, for the search processing device 105 of # 1, the search target file name “D: \ data \ kanto — 200801.csv”, the search formula of the request source 1, and the request source A search request including the output file name for 1 is issued. In response to this, the search processing device 105 # 1 searches for the search target file “D: \ data \ kanto — 200801.csv”, which is the search target data storage 104 (FIG. 1), using the search formula of the request source 1. Execute. Then, the search processing apparatus 105 of # 1 outputs the search result by the search formula of the request source 1 to the search result file having the output file name designated for the request source 1.

同様に、#2の検索処理装置105に対しては、検索対象ファイル名「D:¥data¥kanto_200802.csv」と、要求元1の検索式及び要求元2の検索式と、要求元1及び2にそれぞれ対する各出力ファイル名を含む検索依頼が発行される。これを受けて#2の検索処理装置105は、検索対象ファイル「D:¥data¥kanto_200802.csv」に対して、要求元1の検索式による検索処理と要求元2の検索式による検索処理をそれぞれ実行する。そして、#2の検索処理装置105は、要求元1及び2の各検索式による各検索の結果を、要求元1及び2に対してそれぞれ指定された各出力ファイル名の検索結果ファイルにそれぞれ出力する。   Similarly, for the search processing device 105 of # 2, the search target file name “D: \ data \ kanto — 200802.csv”, the search formula of the request source 1, the search formula of the request source 2, and the request source 1 and A search request including each output file name for 2 is issued. In response to this, the search processing device 105 # 2 performs a search process based on the search formula of the request source 1 and a search process based on the search formula of the request source 2 on the search target file “D: \ data \ kanto — 200802.csv”. Run each one. Then, the search processing device 105 of # 2 outputs the results of the respective searches by the respective search expressions of the request sources 1 and 2 to the search result files of the respective output file names respectively designated for the request sources 1 and 2. To do.

ここで、図21の例において、現在、#1から#4までの4つの検索処理装置105に対して4つの検索依頼(図21のグレーの部分)が発行されており、5つ目以降の検索依頼は発行待ちの状態にある場合を考える。この場合に、5つ目以降の検索依頼に対応する検索対象ファイルについて、新たな検索要求(図21の要求元4及び5)が発生した場合には、その検索対象ファイルにそれらの新たな検索要求の検索式を更に束ねることが可能である。これにより、更なる検索処理待ち時間の短縮を図ることができる。   Here, in the example of FIG. 21, four search requests (gray portions in FIG. 21) are currently issued to the four search processing devices 105 from # 1 to # 4. Consider a case where a search request is waiting to be issued. In this case, when a new search request (request sources 4 and 5 in FIG. 21) is generated for the search target files corresponding to the fifth and subsequent search requests, those new search requests are added to the search target file. It is possible to further bundle the search formula for the request. Thereby, the waiting time for the search process can be further reduced.

検索処理装置105は、検索が正常に終了すると、検索結果ファイルのファイル名を、検索依頼の発行元の検索制御装置101に返す。
前述したように、検索制御装置101は、各検索処理装置105から、各束ねた複数の検索要求に対する検索結果を受信し、それぞれの検索要求に対する検索結果を検索要求毎に振り分ける。このとき、検索制御装置101は、検索要求が、複数の検索対象ファイルを対象とするものである場合、全ての検索処理装置105からの検索結果が得られるまで待ち合わせる。そして、検索制御装置101は、検索要求毎に、検索結果が揃った時点で、検索要求者に検索結果を通知する。
When the search is completed normally, the search processing device 105 returns the file name of the search result file to the search control device 101 that issued the search request.
As described above, the search control apparatus 101 receives search results for a plurality of search requests bundled from each search processing apparatus 105, and distributes the search results for each search request for each search request. At this time, if the search request is for a plurality of search target files, the search control apparatus 101 waits until search results from all the search processing apparatuses 105 are obtained. Then, the search control apparatus 101 notifies the search requester of the search results when the search results are prepared for each search request.

この場合に、要求元の端末装置又は検索制御装置101は、1つの検索要求に対して、複数の検索対象ファイルに対する各検索結果が格納されている各検索結果ファイルの情報(出力ファイル名等)を、そのまま要求元の端末装置に通知するように指定することができる。或いは、要求元の端末装置又は検索制御装置101は、各検索結果ファイルを1つの出力ファイルにマージしてそのマージした出力ファイル名を通知するように指定することもできる。   In this case, the request source terminal device or the search control device 101 responds to a single search request with information (output file name, etc.) on each search result file storing each search result for a plurality of search target files. Can be specified to be notified to the requesting terminal device as it is. Alternatively, the request source terminal device or the search control device 101 can specify that each search result file is merged into one output file and the merged output file name is notified.

図22は、上述の出力ファイルのマージ処理を実現する検索制御装置101の動作を示す動作フローチャートである。また、図23は、その動作説明図である。
まず、検索制御装置101は、検索要求毎に、検索処理装置105から検索結果ファイ
ル名を受信する動作を、その検索要求が対象とする検索対象ファイル数分だけ繰り返し実行する(図22のステップS2201及びS2202)。
FIG. 22 is an operation flowchart showing the operation of the search control apparatus 101 that realizes the above-described output file merging process. FIG. 23 is a diagram for explaining the operation.
First, for each search request, the search control apparatus 101 repeatedly executes the operation of receiving the search result file name from the search processing apparatus 105 for the number of search target files targeted by the search request (step S2201 in FIG. 22). And S2202).

次に、検索制御装置101は、検索結果ファイルをマージ(1ファイルに)するか否かを判定する(図22のステップS2203)。例えば、要求元の端末装置では、検索要求時にマージ指定の有無を指定でき、或いは、サーバ管理者がデフォルト設定として、マージ指定の有無を設定できる。   Next, the search control apparatus 101 determines whether or not to merge the search result files (to one file) (step S2203 in FIG. 22). For example, the requesting terminal device can specify whether or not to specify merge at the time of a search request, or the server administrator can set whether or not to specify merge as a default setting.

マージ指定がされておらずステップS2203の判定がNOならば、検索制御装置101は、検索要求に対して、その検索要求が対象とする検索対象ファイル数分、作成された検索結果ファイル名を、そのまま要求元に送信する(図22のステップS2208)。要求元の端末装置は、通知された検索結果ファイル名に基づいて、ネットワークフォルダ上等に格納されている検索結果ファイルにアクセスする。   If the merge specification is not made and the determination in step S2203 is NO, the search control apparatus 101 responds to the search request with search result file names created for the number of search target files targeted by the search request. The request is transmitted as it is (step S2208 in FIG. 22). The requesting terminal device accesses the search result file stored on the network folder or the like based on the notified search result file name.

図23に示される例では、要求元1からの検索要求に対して、#1の検索処理装置105から検索制御装置101に対して、検索結果ファイル名として「結果_要求元1_処理装置1.csv」が返される(図23の1))。また、#2の検索処理装置105からも同様に、検索結果ファイル名として「結果_要求元1_処理装置2.csv」が返される。要求元1についてマージ指定がなされていなければ、検索制御装置101は、上記2つの検索結果ファイル名を、それぞれ要求元1からの検索要求に対する検索結果として返す(図23の2))。   In the example shown in FIG. 23, in response to the search request from the request source 1, the search result device 105 from the search processor # 1 sends a search result file name “result_request source 1_processing device 1. csv "is returned (FIG. 23-1)). Similarly, “result_request source 1_processing device 2.csv” is returned as the search result file name from the search processing device 105 of # 2. If the merge specification is not made for the request source 1, the search control apparatus 101 returns the two search result file names as search results for the search request from the request source 1 (FIG. 23-2)).

一方、マージ指定がされていてステップS2203の判定がYESならば、検索制御装置101は、まず、検索要求に対して、マージファイルを新規作成する(図22のステップS2204)。   On the other hand, if merge is specified and the determination in step S2203 is YES, the search control apparatus 101 first creates a new merge file in response to the search request (step S2204 in FIG. 22).

次に、検索制御装置101は、上記マージファイルに対して各検索結果ファイルの情報を出力(追記書き)する動作を、検索要求が対象とする検索対象ファイル数分繰り返し実行する(図22のステップS2205及びS2206)。
そして、検索制御装置101は、各検索結果ファイルを削除した後、上記マージファイルのファイル名を、要求元に送信する(図22のステップS2207)。
Next, the search control apparatus 101 repeatedly executes the operation of outputting (additional writing) information of each search result file to the merge file for the number of search target files targeted by the search request (step in FIG. 22). S2205 and S2206).
Then, after deleting each search result file, the search control apparatus 101 transmits the file name of the merge file to the request source (step S2207 in FIG. 22).

図23に示される例では、要求元2からの検索要求に対して、#2の検索処理装置105から検索制御装置101に対して、検索結果ファイル名として「結果_要求元2_処理装置2.csv」が返される。また、#3の検索処理装置105からも同様に、検索結果ファイル名として「結果_要求元2_処理装置3.csv」が返される。要求元2についてマージ指定がなされていれば、検索制御装置101は、上記2つの検索結果ファイルに対してマージ処理を実行する(図23の3))。そして、検索制御装置101は、マージファイル「結果_要求元2.csv」を生成し、そのファイル名を要求元2からの検索要求に対する検索結果として返す(図23の4))。
以上のようにして、要求元や運用者の要望に応じて、検索結果を加工して返信することができる。
In the example shown in FIG. 23, in response to the search request from the request source 2, the search processing device 105 from # 2 sends a search result file name “result_request source 2_processing device 2. csv "is returned. Similarly, “result_request source 2_processing device 3.csv” is returned as the search result file name from the search processing device 105 # 3. If the merge specification is made for the request source 2, the search control apparatus 101 executes the merge process on the two search result files (3 in FIG. 23). Then, the search control apparatus 101 generates a merge file “result_request source 2.csv” and returns the file name as a search result for the search request from the request source 2 (FIG. 23-4)).
As described above, the search result can be processed and returned according to the request of the requester or the operator.

図24は、図1の検索対象データ格納庫104が、データベースのテーブルとして構成される場合における、分類条件定義(同図(a))及び分類対象項目管理テーブル(同図(b))のデータ構成例を示す図である。   24 shows the data structure of the classification condition definition (FIG. (A)) and the classification target item management table (FIG. (B)) when the search target data storage 104 of FIG. 1 is configured as a database table. It is a figure which shows an example.

基本的な構成は、検索対象データ格納庫104がファイルによって構成される場合における図9(a)及び(b)の場合と同じである。異なる点は、分類条件定義における格納庫の種別が「FILE」ではなくデータベースを表す「DB」である点、及び分類対象項
目管理テーブルに、「検索対象ファイル」カラムではなく「検索対象テーブル」カラムが設定される点である。
The basic configuration is the same as the case of FIGS. 9A and 9B in the case where the search target data storage 104 is configured by a file. The difference is that the type of hangar in the classification condition definition is not “FILE” but “DB” representing a database, and the classification target item management table has a “search target table” column instead of a “search target file” column. This is the point to be set.

図25及び図26に示される検索対象データ登録処理の動作も、検索対象データ格納庫104がファイルではなくデータベースのテーブルである点が異なるだけで、図10及び図11の場合と同様であり、図7の動作フローチャートに基づいて動作する。   The operation of the search target data registration process shown in FIGS. 25 and 26 is the same as the case of FIGS. 10 and 11 except that the search target data storage 104 is not a file but a database table. The operation is based on the operation flowchart of FIG.

更に、図27及び図28に示される検索対象データ特定処理の動作も、検索対象データ格納庫104がファイルではなくデータベースのテーブルである点が異なるだけで、図14や図16の場合と同様であり、図13の動作フローチャートに基づいて動作する。   Further, the operation of the search target data specifying process shown in FIGS. 27 and 28 is the same as the case of FIGS. 14 and 16 except that the search target data storage 104 is not a file but a database table. The operation is based on the operation flowchart of FIG.

図29は、上述した実施形態による検索システムを実現できるコンピュータのハードウェア構成の一例を示す図である。
図29に示されるコンピュータは、CPU2901、メモリ2902、入力装置2903、出力装置2904、外部記憶装置2905、可搬記録媒体2909が挿入される可搬記録媒体駆動装置2906、及びネットワーク接続装置2907を有し、これらがバス2908によって相互に接続された構成を有する。同図に示される構成は上記システムを実現できるコンピュータの一例であり、そのようなコンピュータはこの構成に限定されるものではない。
FIG. 29 is a diagram illustrating an example of a hardware configuration of a computer that can implement the search system according to the above-described embodiment.
The computer shown in FIG. 29 includes a CPU 2901, a memory 2902, an input device 2903, an output device 2904, an external storage device 2905, a portable recording medium driving device 2906 into which a portable recording medium 2909 is inserted, and a network connection device 2907. These have a configuration in which they are connected to each other by a bus 2908. The configuration shown in the figure is an example of a computer that can implement the above system, and such a computer is not limited to this configuration.

CPU2901は、当該コンピュータ全体の制御を行う。メモリ2902は、プログラムの実行、データ更新等の際に、外部記憶装置2905(或いは可搬記録媒体2909)に記憶されているプログラム又はデータを一時的に格納するRAM等のメモリである。CPU2901は、プログラムをメモリ2902に読み出して実行することにより、全体の制御を行う。   The CPU 2901 controls the entire computer. The memory 2902 is a memory such as a RAM that temporarily stores a program or data stored in the external storage device 2905 (or portable recording medium 2909) when executing a program, updating data, or the like. The CPU 2901 performs overall control by reading the program into the memory 2902 and executing it.

入力装置2903は、例えば、キーボード、マウス等及びそれらのインタフェース制御装置とからなる。入力装置2903は、ユーザによるキーボードやマウス等による入力操作を検出し、その検出結果をCPU2901に通知する。   The input device 2903 includes, for example, a keyboard, a mouse, etc. and their interface control devices. The input device 2903 detects an input operation by a user using a keyboard, a mouse, or the like, and notifies the CPU 2901 of the detection result.

出力装置2904は、表示装置、印刷装置等及びそれらのインタフェース制御装置とからなる。出力装置2904は、CPU2901の制御によって送られてくるデータを表示装置や印刷装置に出力する。   The output device 2904 includes a display device, a printing device, etc. and their interface control devices. The output device 2904 outputs data sent under the control of the CPU 2901 to a display device or a printing device.

外部記憶装置2905は、例えばハードディスク記憶装置である。主に各種データやプログラムの保存に用いられる。
可搬記録媒体駆動装置2906は、光ディスクやSDRAM、コンパクトフラッシュ(登録商標)等の可搬記録媒体2909を収容するもので、外部記憶装置2905の補助の役割を有する。
The external storage device 2905 is, for example, a hard disk storage device. Mainly used for storing various data and programs.
The portable recording medium driving device 2906 accommodates a portable recording medium 2909 such as an optical disc, SDRAM, or Compact Flash (registered trademark), and has an auxiliary role for the external storage device 2905.

ネットワーク接続装置2907は、例えばLAN(ローカルエリアネットワーク)又はWAN(ワイドエリアネットワーク)の通信回線を接続するための装置である。
本実施形態によるシステムは、前述した図7、図13、図18、及び図22等の動作フローチャートによって実現される処理機能を搭載したプログラムをCPU2901が実行することで実現される。そのプログラムは、例えば外部記憶装置2905や可搬記録媒体2909に記録して配布してもよく、或いはネットワーク接続装置2907によりネットワークから取得できるようにしてもよい。
The network connection device 2907 is a device for connecting, for example, a LAN (local area network) or a WAN (wide area network) communication line.
The system according to the present embodiment is realized by the CPU 2901 executing a program equipped with processing functions realized by the operation flowcharts of FIGS. 7, 13, 18, and 22 described above. For example, the program may be recorded and distributed in the external storage device 2905 or the portable recording medium 2909, or may be acquired from the network by the network connection device 2907.

以上の実施形態に関して、更に以下の付記を開示する。
(付記1)
検索要求を受信し、該検索要求に対応する検索式に基づいて検索依頼を生成し、該検索依頼に基づいて複数の検索対象データ格納庫に分類して格納されている検索対象データに対して検索処理を実行し、該検索処理の検索結果を前記検索要求の要求元に通知する検索処理方法において、
前記検索要求に対応する検索式から、前記検索対象データが前記複数の検索対象データ格納庫に分類して格納されるときに用いられる分類対象項目と該項目の値を抽出し、該分類対象項目の値に基づいて前記検索式が対象とする前記検索対象データ格納庫を特定する検索対象データ特定処理ステップと、
1つ以上の前記検索要求に対応する各検索式を、該各検索式に対応して前記検索対象データ特定処理ステップによって特定される検索対象データ格納庫別に束ね、該検索対象データ格納庫別に該格納庫の識別情報と前記束ねられた各検索式の情報とを含む検索依頼を生成して発行する検索依頼処理ステップと、
該検索依頼に基づいて、該検索依頼に含まれる前記識別情報に対応する前記検索対象データ格納庫内の前記検索対象データに対して、該検索依頼に含まれる前記各検索式に対応する各検索処理を実行する検索処理ステップと、
該検索処理ステップにより得られる前記検索結果を、前記検索式毎に振り分けて該検索式毎に対応する各検索要求の要求元に送信する検索結果通知処理ステップと、
を含むことを特徴とする検索処理方法。
(付記2)
前記検索対象データ特定処理ステップは、前記分類対象項目の値に基づいて、前記検索対象データが前記分類対象項目の値毎に前記複数の検索対象データ格納庫のうちのどの格納庫に格納されるかを示す検索対象データ所在管理簿を参照することにより、前記検索対象データ格納庫を特定する、
ことを特徴とする付記1に記載の検索処理方法。
(付記3)
前記検索対象データ格納庫は、前記検索対象データを書き込んだ検索対象ファイルである、
ことを特徴とする付記1又は2の何れか1項に記載の検索方法。
(付記4)
前記検索対象データ格納庫は、前記検索対象データを格納したデータベースの検索対象テーブルである、
ことを特徴とする付記1又は2の何れか1項に記載の検索処理方法。
(付記5)
検索要求を受信し、該検索要求に対応する検索式に基づいて検索依頼を生成し、該検索依頼に基づいて複数の検索対象データ格納庫に分類して格納されている検索対象データに対して検索処理を実行し、該検索処理の検索結果を前記検索要求の要求元に通知する検索処理システムにおいて、
前記検索要求に対応する検索式から、前記検索対象データが前記検索対象データ格納庫に分類して格納されるときに用いられる分類対象項目と該項目の値を抽出し、該分類対象項目の値に基づいて前記検索式が対象とする前記検索対象データ格納庫を特定する検索対象データ特定処理部と、
1つ以上の前記検索要求に対応する各検索式を、該各検索式に対応して前記検索対象データ特定処理部によって特定される検索対象データ格納庫別に束ね、該検索対象データ格納庫別に該格納庫の識別情報と前記束ねられた各検索式の情報とを含む検索依頼を生成して発行する検索依頼処理部と、
該検索依頼に基づいて、該検索依頼に含まれる前記識別情報に対応する前記検索対象データ格納庫内の前記検索対象データに対して、該検索依頼に含まれる前記各検索式に対応する各検索処理を実行する検索処理部と、
該検索処理部により得られる前記検索結果を、前記検索式毎に振り分けて該検索式毎に対応する各検索要求の要求元に送信する検索結果通知処理部と、
を含むことを特徴とする検索処理システム。
(付記6)
前記検索対象データ特定処理部は、前記分類対象項目の値に基づいて、前記検索対象データが前記分類対象項目の値毎に前記複数の検索対象データ格納庫のうちのどの格納庫に格納されるかを示す検索対象データ所在管理簿を参照することにより、前記検索対象データ格納庫を特定する、
ことを特徴とする付記5に記載の検索処理システム。
(付記7)
前記検索対象データ格納庫は、前記検索対象データを書き込んだ検索対象ファイルである、
ことを特徴とする付記5又は6の何れか1項に記載の検索処理システム。
(付記8)
前記検索対象データ格納庫は、前記検索対象データを格納したデータベースの検索対象テーブルである、
ことを特徴とする付記5又は6の何れか1項に記載の検索処理システム。
(付記9)
検索要求を受信し、該検索要求に対応する検索式に基づいて検索依頼を生成し、該検索依頼に基づいて複数の検索対象データ格納庫に分類して格納されている検索対象データに対して実行された検索処理の検索結果を受信し前記検索要求の要求元に通知する検索処理を実行するコンピュータに、
前記検索要求に対応する検索式から、前記検索対象データが前記検索対象データ格納庫に分類して格納されるときに用いられる分類対象項目と該項目の値を抽出し、該分類対象項目の値に基づいて前記検索式が対象とする前記検索対象データ格納庫を特定する検索対象データ特定処理ステップと、
1つ以上の前記検索要求に対応する各検索式を、該各検索式に対応して前記検索対象データ特定処理ステップによって特定される検索対象データ格納庫別に束ね、該検索対象データ格納庫別に該格納庫の識別情報と前記束ねられた各検索式の情報とを含む検索依頼を生成して発行する検索依頼処理ステップと、
該検索依頼に基づいて、該検索依頼に含まれる前記識別情報に対応する前記検索対象データ格納庫内の前記検索対象データに対して実行された、該検索依頼に含まれる前記各検索式に対応する各検索処理により得られる各検索結果を受信し、該各検索結果を前記検索式毎に振り分けて該検索式毎に対応する各検索要求の要求元に送信する検索結果通知処理ステップと、
を実行させるための検索処理プログラム。
(付記10)
前記検索対象データ特定処理ステップは、前記分類対象項目の値に基づいて、前記検索対象データが前記分類対象項目の値毎に前記複数の検索対象データ格納庫のうちのどの格納庫に格納されるかを示す検索対象データ所在管理簿を参照することにより、前記検索対象データ格納庫を特定する、
ことを特徴とする付記9に記載の検索処理プログラム。
Regarding the above embodiment, the following additional notes are disclosed.
(Appendix 1)
A search request is received, a search request is generated based on a search expression corresponding to the search request, and a search is performed on the search target data classified and stored in a plurality of search target data storages based on the search request. In a search processing method for executing a process and notifying a search request of the search request of a search result of the search process,
From the search formula corresponding to the search request, extract the classification target item and the value of the item used when the search target data is classified and stored in the plurality of search target data storages, and the classification target item A search target data specifying processing step for specifying the search target data storage targeted by the search formula based on a value;
Each search expression corresponding to one or more of the search requests is bundled for each search target data storage specified by the search target data specifying processing step corresponding to each search expression, and each search expression of the storage is specified for each search target data storage. A search request processing step for generating and issuing a search request including identification information and information of each of the bundled search expressions;
Based on the search request, each search process corresponding to each search formula included in the search request for the search target data in the search target data storage corresponding to the identification information included in the search request A search processing step for executing
A search result notification processing step of distributing the search results obtained by the search processing step for each search formula and transmitting the search results to a request source of each search request corresponding to the search formula;
A search processing method characterized by comprising:
(Appendix 2)
In the search target data specifying processing step, based on the value of the classification target item, in which storage among the plurality of search target data storages the search target data is stored for each value of the classification target item. The search target data storage is specified by referring to the search target data location management list shown in FIG.
The search processing method according to supplementary note 1, wherein:
(Appendix 3)
The search target data storage is a search target file in which the search target data is written.
The search method according to any one of appendices 1 and 2, characterized in that:
(Appendix 4)
The search target data storage is a search target table of a database storing the search target data.
The search processing method according to any one of Supplementary Note 1 or 2, wherein:
(Appendix 5)
A search request is received, a search request is generated based on a search expression corresponding to the search request, and a search is performed on the search target data classified and stored in a plurality of search target data storages based on the search request. In a search processing system that executes a process and notifies the search request source of the search result of the search process,
From the search expression corresponding to the search request, extract the classification target item and the value of the item used when the search target data is classified and stored in the search target data storage, and the value of the classification target item is extracted. A search target data identification processing unit that identifies the search target data storage that is targeted by the search formula;
Each search expression corresponding to one or more of the search requests is bundled for each search target data storage specified by the search target data specifying processing unit corresponding to each search expression, and each search expression of the storage is stored for each search target data storage. A search request processing unit that generates and issues a search request including identification information and information on each of the bundled search expressions;
Based on the search request, each search process corresponding to each search formula included in the search request for the search target data in the search target data storage corresponding to the identification information included in the search request A search processing unit for executing
A search result notification processing unit that distributes the search results obtained by the search processing unit for each search formula and transmits the search results to a request source of each search request corresponding to each search formula;
A search processing system comprising:
(Appendix 6)
Based on the value of the classification target item, the search target data identification processing unit determines in which storage of the plurality of search target data storages the search target data is stored for each value of the classification target item. The search target data storage is specified by referring to the search target data location management list shown in FIG.
The search processing system according to appendix 5, characterized in that:
(Appendix 7)
The search target data storage is a search target file in which the search target data is written.
The search processing system according to any one of appendices 5 and 6, characterized in that:
(Appendix 8)
The search target data storage is a search target table of a database storing the search target data.
The search processing system according to any one of appendices 5 and 6, characterized in that:
(Appendix 9)
A search request is received, a search request is generated based on a search expression corresponding to the search request, and executed on search target data classified and stored in a plurality of search target data storages based on the search request A computer that executes a search process that receives a search result of the search process and notifies the requester of the search request;
From the search formula corresponding to the search request, extract the classification target item and the value of the item used when the search target data is classified and stored in the search target data storage, and the value of the classification target item is extracted. A search target data specifying processing step for specifying the search target data storage targeted by the search formula,
Each search formula corresponding to one or more of the search requests is bundled for each search target data storage specified by the search target data specifying processing step corresponding to each search formula, and for each search target data storage, A search request processing step for generating and issuing a search request including identification information and information of each of the bundled search expressions;
Based on the search request, corresponding to the search formulas included in the search request executed for the search target data in the search target data storage corresponding to the identification information included in the search request. A search result notification processing step of receiving each search result obtained by each search process, distributing each search result for each search formula, and transmitting it to the request source of each search request corresponding to each search formula;
Search processing program for executing
(Appendix 10)
In the search target data specifying processing step, based on the value of the classification target item, in which storage among the plurality of search target data storages the search target data is stored for each value of the classification target item. The search target data storage is identified by referring to the search target data location management list shown in FIG.
The search processing program according to supplementary note 9, wherein

開示する技術は、一般ファイル又はデータベースに格納されて蓄積されたデータに対して、プロファイリング、クレンジング、ログ解析、ログ証跡などのデータ操作を実施するシステム又はプログラムに利用することができる。   The disclosed technology can be used in a system or program that performs data operations such as profiling, cleansing, log analysis, and log trails on data stored in a general file or database.

101 検索制御装置
102 検索対象データ管理装置
103 検索対象データ所在管理簿
104 検索対象データ格納庫
105 検索処理装置
DESCRIPTION OF SYMBOLS 101 Search control apparatus 102 Search object data management apparatus 103 Search object data location management book 104 Search object data storage 105 Search processing apparatus

Claims (7)

検索要求を受信し、該検索要求に対応する検索式に基づいて検索依頼を生成し、該検索依頼に基づいて複数の検索対象データ格納庫に分類して格納されている検索対象データに対して検索処理を実行し、該検索処理の検索結果を前記検索要求の要求元に通知する検索処理方法において、
前記検索要求に対応する検索式から、前記検索対象データが前記複数の検索対象データ格納庫に分類して格納されるときに用いられる分類対象項目と該項目の値を抽出し、該分類対象項目の値に基づいて前記検索式が対象とする前記検索対象データ格納庫を特定する検索対象データ特定処理ステップと、
1つ以上の前記検索要求に対応する各検索式を、該各検索式に対応して前記検索対象データ特定処理ステップによって特定される検索対象データ格納庫別に束ね、該検索対象データ格納庫別に該格納庫の識別情報と前記束ねられた各検索式の情報とを含む検索依頼を生成して発行する検索依頼処理ステップと、
該検索依頼に基づいて、該検索依頼に含まれる前記識別情報に対応する前記検索対象データ格納庫内の前記検索対象データに対して、該検索依頼に含まれる前記各検索式に対応する各検索処理を実行する検索処理ステップと、
該検索処理ステップにより得られる前記検索結果を、前記検索式毎に振り分けて該検索式毎に対応する各検索要求の要求元に送信する検索結果通知処理ステップと、
を含むことを特徴とする検索処理方法。
A search request is received, a search request is generated based on a search expression corresponding to the search request, and a search is performed on the search target data classified and stored in a plurality of search target data storages based on the search request. In a search processing method for executing a process and notifying a search request of the search request of a search result of the search process,
From the search formula corresponding to the search request, extract the classification target item and the value of the item used when the search target data is classified and stored in the plurality of search target data storages, and the classification target item A search target data specifying processing step for specifying the search target data storage targeted by the search formula based on a value;
Each search expression corresponding to one or more of the search requests is bundled for each search target data storage specified by the search target data specifying processing step corresponding to each search expression, and each search expression of the storage is specified for each search target data storage. A search request processing step for generating and issuing a search request including identification information and information of each of the bundled search expressions;
Based on the search request, each search process corresponding to each search formula included in the search request for the search target data in the search target data storage corresponding to the identification information included in the search request A search processing step for executing
A search result notification processing step of distributing the search results obtained by the search processing step for each search formula and transmitting the search results to a request source of each search request corresponding to the search formula;
A search processing method characterized by comprising:
前記検索対象データ特定処理ステップは、前記分類対象項目の値に基づいて、前記検索対象データが前記分類対象項目の値毎に前記複数の検索対象データ格納庫のうちのどの格納庫に格納されるかを示す検索対象データ所在管理簿を参照することにより、前記検索対象データ格納庫を特定する、
ことを特徴とする請求項1に記載の検索処理方法。
In the search target data specifying processing step, based on the value of the classification target item, in which storage among the plurality of search target data storages the search target data is stored for each value of the classification target item. The search target data storage is specified by referring to the search target data location management list shown in FIG.
The search processing method according to claim 1, wherein:
前記検索対象データ格納庫は、前記検索対象データを書き込んだ検索対象ファイルである、
ことを特徴とする請求項1又は2の何れか1項に記載の検索方法。
The search target data storage is a search target file in which the search target data is written.
The search method according to any one of claims 1 and 2.
前記検索対象データ格納庫は、前記検索対象データを格納したデータベースの検索対象テーブルである、
ことを特徴とする請求項1又は2の何れか1項に記載の検索処理方法。
The search target data storage is a search target table of a database storing the search target data.
The search processing method according to any one of claims 1 and 2.
検索要求を受信し、該検索要求に対応する検索式に基づいて検索依頼を生成し、該検索依頼に基づいて複数の検索対象データ格納庫に分類して格納されている検索対象データに対して検索処理を実行し、該検索処理の検索結果を前記検索要求の要求元に通知する検索処理システムにおいて、
前記検索要求に対応する検索式から、前記検索対象データが前記検索対象データ格納庫に分類して格納されるときに用いられる分類対象項目と該項目の値を抽出し、該分類対象項目の値に基づいて前記検索式が対象とする前記検索対象データ格納庫を特定する検索対象データ特定処理部と、
1つ以上の前記検索要求に対応する各検索式を、該各検索式に対応して前記検索対象データ特定処理部によって特定される検索対象データ格納庫別に束ね、該検索対象データ格納庫別に該格納庫の識別情報と前記束ねられた各検索式の情報とを含む検索依頼を生成して発行する検索依頼処理部と、
該検索依頼に基づいて、該検索依頼に含まれる前記識別情報に対応する前記検索対象データ格納庫内の前記検索対象データに対して、該検索依頼に含まれる前記各検索式に対応する各検索処理を実行する検索処理部と、
該検索処理部により得られる前記検索結果を、前記検索式毎に振り分けて該検索式毎に対応する各検索要求の要求元に送信する検索結果通知処理部と、
を含むことを特徴とする検索処理システム。
A search request is received, a search request is generated based on a search expression corresponding to the search request, and a search is performed on the search target data classified and stored in a plurality of search target data storages based on the search request. In a search processing system that executes a process and notifies the search request source of the search result of the search process,
From the search expression corresponding to the search request, extract the classification target item and the value of the item used when the search target data is classified and stored in the search target data storage, and the value of the classification target item is extracted. A search target data identification processing unit that identifies the search target data storage that is targeted by the search formula;
Each search expression corresponding to one or more of the search requests is bundled for each search target data storage specified by the search target data specifying processing unit corresponding to each search expression, and each search expression of the storage is stored for each search target data storage. A search request processing unit that generates and issues a search request including identification information and information on each of the bundled search expressions;
Based on the search request, each search process corresponding to each search formula included in the search request for the search target data in the search target data storage corresponding to the identification information included in the search request A search processing unit for executing
A search result notification processing unit that distributes the search results obtained by the search processing unit for each search formula and transmits the search results to a request source of each search request corresponding to each search formula;
A search processing system comprising:
検索要求を受信し、該検索要求に対応する検索式に基づいて検索依頼を生成し、該検索依頼に基づいて複数の検索対象データ格納庫に分類して格納されている検索対象データに対して実行された検索処理の検索結果を受信し前記検索要求の要求元に通知する検索処理を実行するコンピュータに、
前記検索要求に対応する検索式から、前記検索対象データが前記検索対象データ格納庫に分類して格納されるときに用いられる分類対象項目と該項目の値を抽出し、該分類対象項目の値に基づいて前記検索式が対象とする前記検索対象データ格納庫を特定する検索対象データ特定処理ステップと、
1つ以上の前記検索要求に対応する各検索式を、該各検索式に対応して前記検索対象データ特定処理ステップによって特定される検索対象データ格納庫別に束ね、該検索対象データ格納庫別に該格納庫の識別情報と前記束ねられた各検索式の情報とを含む検索依頼を生成して発行する検索依頼処理ステップと、
該検索依頼に基づいて、該検索依頼に含まれる前記識別情報に対応する前記検索対象データ格納庫内の前記検索対象データに対して実行された、該検索依頼に含まれる前記各検索式に対応する各検索処理により得られる各検索結果を受信し、該各検索結果を前記検索式毎に振り分けて該検索式毎に対応する各検索要求の要求元に送信する検索結果通知処理ステップと、
を実行させるための検索処理プログラム。
A search request is received, a search request is generated based on a search expression corresponding to the search request, and executed on search target data classified and stored in a plurality of search target data storages based on the search request A computer that executes a search process that receives a search result of the search process and notifies the requester of the search request;
From the search expression corresponding to the search request, extract the classification target item and the value of the item used when the search target data is classified and stored in the search target data storage, and the value of the classification target item is extracted. A search target data specifying processing step for specifying the search target data storage targeted by the search formula,
Each search expression corresponding to one or more of the search requests is bundled for each search target data storage specified by the search target data specifying processing step corresponding to each search expression, and each search expression of the storage is specified for each search target data storage. A search request processing step for generating and issuing a search request including identification information and information of each of the bundled search expressions;
Based on the search request, corresponding to each search expression included in the search request executed for the search target data in the search target data storage corresponding to the identification information included in the search request. A search result notification processing step of receiving each search result obtained by each search process, distributing each search result for each search formula, and transmitting it to the request source of each search request corresponding to each search formula;
Search processing program to execute.
前記検索対象データ特定処理ステップは、前記分類対象項目の値に基づいて、前記検索対象データが前記分類対象項目の値毎に前記複数の検索対象データ格納庫のうちのどの格納庫に格納されるかを示す検索対象データ所在管理簿を参照することにより、前記検索対象データ格納庫を特定する、
ことを特徴とする請求項6に記載の検索処理プログラム。
In the search target data specifying processing step, based on the value of the classification target item, in which storage among the plurality of search target data storages the search target data is stored for each value of the classification target item. The search target data storage is specified by referring to the search target data location management list shown in FIG.
The search processing program according to claim 6.
JP2009006774A 2009-01-15 2009-01-15 Retrieval processing method, system and program Pending JP2010165170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009006774A JP2010165170A (en) 2009-01-15 2009-01-15 Retrieval processing method, system and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009006774A JP2010165170A (en) 2009-01-15 2009-01-15 Retrieval processing method, system and program

Publications (1)

Publication Number Publication Date
JP2010165170A true JP2010165170A (en) 2010-07-29

Family

ID=42581279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009006774A Pending JP2010165170A (en) 2009-01-15 2009-01-15 Retrieval processing method, system and program

Country Status (1)

Country Link
JP (1) JP2010165170A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5620617B1 (en) * 2014-05-28 2014-11-05 楽天株式会社 Information processing system, terminal, server, information processing method, recording medium, and program
JP2016528599A (en) * 2013-06-27 2016-09-15 ユーロクリア エスエー エヌヴィーEuroclear Sa/Nv Improved inventory sourcing system
US11321775B2 (en) 2013-06-27 2022-05-03 Euroclear Sa/Nv Asset inventory system
JP2022145329A (en) * 2021-03-19 2022-10-04 株式会社Kokusai Electric Management device, data processing method, program, semiconductor device manufacturing method, and processing system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05334165A (en) * 1992-05-29 1993-12-17 Hitachi Ltd Parallel data base processing system and its secondary key retrieving method
JPH0660121A (en) * 1992-03-19 1994-03-04 Hitachi Ltd Information retrieval device
JPH07160557A (en) * 1993-12-13 1995-06-23 Hitachi Ltd Data base access processing method
JPH08255168A (en) * 1995-03-17 1996-10-01 Oki Electric Ind Co Ltd Method and structure for retrieval management of decentralized database, and integrated management database
JPH10143539A (en) * 1996-09-11 1998-05-29 Nippon Telegr & Teleph Corp <Ntt> Information retrieving method, its system, recording medium recording information resource dictionary data and recording medium recording information retrieving program
JP2000339205A (en) * 1999-05-31 2000-12-08 Toshiba Tec Corp Commodity sales data processing system
JP2002063165A (en) * 2001-04-09 2002-02-28 Nippon Telegr & Teleph Corp <Ntt> Method and system and program for information retrieval, and recording medium having the same program recorded thereon
JP2004213680A (en) * 2004-02-02 2004-07-29 Hitachi Ltd Database management system and query processing method
JP2005208757A (en) * 2004-01-20 2005-08-04 Fujitsu Ltd Database integration reference system, database integration reference method, and database integration reference program
JP2007048318A (en) * 2006-10-30 2007-02-22 Hitachi Ltd Relational database processing method and relational database processor
JP2008134952A (en) * 2006-11-29 2008-06-12 Nippon Telegr & Teleph Corp <Ntt> Information disclosure system, information disclosure method
JP2008243078A (en) * 2007-03-28 2008-10-09 Toshiba Corp System, device, and method for retrieving information from distributed database
JP2008283169A (en) * 2007-04-09 2008-11-20 Hitachi Kokusai Electric Inc Substrate processing system and data retrieval method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0660121A (en) * 1992-03-19 1994-03-04 Hitachi Ltd Information retrieval device
JPH05334165A (en) * 1992-05-29 1993-12-17 Hitachi Ltd Parallel data base processing system and its secondary key retrieving method
JPH07160557A (en) * 1993-12-13 1995-06-23 Hitachi Ltd Data base access processing method
JPH08255168A (en) * 1995-03-17 1996-10-01 Oki Electric Ind Co Ltd Method and structure for retrieval management of decentralized database, and integrated management database
JPH10143539A (en) * 1996-09-11 1998-05-29 Nippon Telegr & Teleph Corp <Ntt> Information retrieving method, its system, recording medium recording information resource dictionary data and recording medium recording information retrieving program
JP2000339205A (en) * 1999-05-31 2000-12-08 Toshiba Tec Corp Commodity sales data processing system
JP2002063165A (en) * 2001-04-09 2002-02-28 Nippon Telegr & Teleph Corp <Ntt> Method and system and program for information retrieval, and recording medium having the same program recorded thereon
JP2005208757A (en) * 2004-01-20 2005-08-04 Fujitsu Ltd Database integration reference system, database integration reference method, and database integration reference program
JP2004213680A (en) * 2004-02-02 2004-07-29 Hitachi Ltd Database management system and query processing method
JP2007048318A (en) * 2006-10-30 2007-02-22 Hitachi Ltd Relational database processing method and relational database processor
JP2008134952A (en) * 2006-11-29 2008-06-12 Nippon Telegr & Teleph Corp <Ntt> Information disclosure system, information disclosure method
JP2008243078A (en) * 2007-03-28 2008-10-09 Toshiba Corp System, device, and method for retrieving information from distributed database
JP2008283169A (en) * 2007-04-09 2008-11-20 Hitachi Kokusai Electric Inc Substrate processing system and data retrieval method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016528599A (en) * 2013-06-27 2016-09-15 ユーロクリア エスエー エヌヴィーEuroclear Sa/Nv Improved inventory sourcing system
JP2019149185A (en) * 2013-06-27 2019-09-05 ユーロクリア エスエー エヌヴィーEuroclear Sa/Nv Asset inventory system and computer-implemented method of performing electronic collateralization search
US10552900B2 (en) 2013-06-27 2020-02-04 Euroclear Sa/Nv Asset inventory system
US11321775B2 (en) 2013-06-27 2022-05-03 Euroclear Sa/Nv Asset inventory system
JP5620617B1 (en) * 2014-05-28 2014-11-05 楽天株式会社 Information processing system, terminal, server, information processing method, recording medium, and program
WO2015181909A1 (en) * 2014-05-28 2015-12-03 楽天株式会社 Information processing system, terminal, server, information processing method, recording medium, and program
JP2022145329A (en) * 2021-03-19 2022-10-04 株式会社Kokusai Electric Management device, data processing method, program, semiconductor device manufacturing method, and processing system

Similar Documents

Publication Publication Date Title
CN102483765B (en) File search system and program
CN103154948B (en) Card-based management of discardable files
US7308463B2 (en) Providing requested file mapping information for a file on a storage device
CN103262043B (en) The method and system of the meticulous recovery of performing database from differential backup
US7689574B2 (en) Index and method for extending and querying index
US9672241B2 (en) Representing an outlier value in a non-nullable column as null in metadata
US20110295879A1 (en) Systems and methods for document management
CN105069048A (en) Small file storage method, query method and device
US20140040331A1 (en) Computer system, file management method and metadata server
KR20090035545A (en) Data processing over very large databases
JP2012174096A (en) Computer system and data management method
JP5557824B2 (en) Differential indexing method for hierarchical file storage
CN102257497B (en) Download management of discardable files
US7844596B2 (en) System and method for aiding file searching and file serving by indexing historical filenames and locations
JP6245700B2 (en) Computer system, data inspection method and computer
CN112685223A (en) File type based file backup
CN101408882B (en) Method and system for searching authorization document
JP2010165170A (en) Retrieval processing method, system and program
KR101272656B1 (en) Method of file management based on tag and system of the same
CN112463734A (en) File retrieval method, system and related device
JP2011065640A (en) Document management system and method therefor
US10223360B2 (en) Print job archives that are optimized for server hardware
CN101751390B (en) Disk configuration method of object orientation storage device
KR101792189B1 (en) Apparatus and method for processing big data
KR101170969B1 (en) Data mapping method on sharing data base and data mapping system thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111006

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130318

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130326

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130527

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131210

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140210

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140722