JPH0612455A - Record retrieval device - Google Patents

Record retrieval device

Info

Publication number
JPH0612455A
JPH0612455A JP4193388A JP19338892A JPH0612455A JP H0612455 A JPH0612455 A JP H0612455A JP 4193388 A JP4193388 A JP 4193388A JP 19338892 A JP19338892 A JP 19338892A JP H0612455 A JPH0612455 A JP H0612455A
Authority
JP
Japan
Prior art keywords
file
search
comparison
files
specific item
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.)
Withdrawn
Application number
JP4193388A
Other languages
Japanese (ja)
Inventor
Yasushi Iwata
靖史 岩田
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP4193388A priority Critical patent/JPH0612455A/en
Publication of JPH0612455A publication Critical patent/JPH0612455A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide the record retrieval device where the retrieval time is not extended regardless of increase or reduction of the number of records in a file. CONSTITUTION:This device consists of a file storage means 4 where retrieval object files are stored, a specific item retrieval and extraction means 2 which rerieves and extracts a specific item from retrieval object files stored in the file storage means 4, a comparison file selecting means 1 which selects a file to be compared from files extracted by the specific item retrieval and extraction means 2, and a file comparing means 3 which compares the file selected by the comparison file selecting means 1.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、レコード検索装置に係
り、とくに複数ファイルにおけるレコード検索装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a record search device, and more particularly to a record search device for a plurality of files.

【0002】[0002]

【従来の技術】従来のレコード検索装置では、指定され
た検索キーワードあるいは検索条件に合致するレコード
を複数のファイルの中から検索し抽出を行う場合に、各
検索対象ファイルをあらかじめ検索時間が最小になるよ
うに設定されている順番で順次比較し、その比較結果を
中間ファイルとして作成しながら、目的とするレコード
を抽出していた。
2. Description of the Related Art In a conventional record search apparatus, when a record matching a specified search keyword or search condition is searched and extracted from a plurality of files, the search time of each search target file is minimized in advance. The target records were extracted while sequentially comparing in the order set so that the comparison result was created as an intermediate file.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例においては、各検索対象ファイルの比較順をあらか
じめ決めていたために、その比較順を設定した時は検索
時間が最小になるように最適化されていても、各ファイ
ルのレコード件数に増減が生じると検索時間が長くなる
という不都合があった。
However, in the above-mentioned conventional example, since the comparison order of the respective files to be searched is determined in advance, when the comparison order is set, the search time is optimized so as to be the minimum. However, if the number of records in each file increases or decreases, the search time becomes long.

【0004】[0004]

【発明の目的】本発明の目的は、かかる従来例の有する
不都合を改善し、とくにファイルにおけるレコード件数
が増減しても、検索時間の遅延が生じないレコード検索
装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a record retrieving apparatus which improves the inconvenience of the conventional example, and in particular does not cause a delay in retrieval time even if the number of records in a file increases or decreases.

【0005】[0005]

【課題を解決するための手段】そこで、本発明では、検
索対象ファイルが格納されているファイル記憶手段と、
このファイル記憶手段に格納されている検索対象ファイ
ルに対し特定項目について検索抽出を行う特定項目検索
抽出手段と、この特定項目検索抽出手段にて抽出された
ファイルの中から比較するファイルを選択する比較ファ
イル選択手段と、この比較ファイル選択手段にて選択さ
れたファイルの比較を行うファイル比較手段とを具備す
るという構成を採っている。これによって前述した目的
を達成しようとするものである。
Therefore, according to the present invention, there is provided a file storage means in which a file to be searched is stored,
A specific item search / extractor for performing a search / extraction for a specific item with respect to the search target file stored in the file storage unit, and a comparison for selecting a file to be compared from the files extracted by the specific item search / extractor The file selection means and the file comparison means for comparing the files selected by the comparison file selection means are provided. This aims to achieve the above-mentioned object.

【0006】[0006]

【作用】特定項目検索抽出手段は、ファイル記憶手段に
格納されているすべての検索対象ファイルに対し特定項
目について検索抽出を行う。比較ファイル選択手段は、
特定項目検索抽出手段にて抽出されたファイルの中から
レーコード件数が少ない順にファイルを選択する。ファ
イル比較手段は、比較ファイル選択手段にて選択された
順にファイルの比較を行い、目的とするレコードを抽出
する。
The specific item search and extraction means performs the search and extraction for the specific item for all the search target files stored in the file storage means. The comparison file selection means is
Files are selected from the files extracted by the specific item search / extraction means in order of increasing number of racodes. The file comparison means compares the files in the order selected by the comparison file selection means, and extracts the target record.

【0007】[0007]

【発明の実施例】以下、本発明の一実施例を図1ないし
図3に基づいて説明する。図1の実施例は、検索対象フ
ァイルが格納されているファイル記憶手段4と、このフ
ァイル記憶手段4に格納されている検索対象ファイルに
対し特定項目について検索抽出を行う特定項目検索抽出
手段2と、この特定項目検索抽出手段2にて抽出された
ファイルの中から比較するファイルを選択する比較ファ
イル選択手段1と、この比較ファイル選択手段1にて選
択されたファイルの比較を行うファイル比較手段3と、
このファイル比較手段3での検索・抽出結果を出力する
出力手段5とから構成される。ここで、比較ファイル選
択手段1は、特定項目検索抽出手段2にて抽出されたフ
ァイルにおいてレコード件数の少ないファイルから順に
選択する機能を有している。また、ファイル記憶手段に
は、図2に示されるように検索対象ファイルとしてファ
イルAとファイルBとファイルCとファイルDの4ファ
イルが格納されているものとする。そして、検索対象フ
ァイルAは、共通項目イ,ロ,ハ,ニを有する複数のレ
コードから構成され、検索対象ファイルBは、共通項目
イ,ホ,ヘを有する複数のレコードから構成され、、検
索対象ファイルCは、共通項目イ,ト,チ,リを有する
複数のレコードから構成され、、検索対象ファイルD
は、共通項目イ,ヌ,ル,ヲを有する複数のレコードか
ら構成されているものとする。次に、本実施例の動作に
ついて説明する。ここでは、項目イを検索キーワードと
し、各ファイルに共通して存在するレコードを抽出する
場合について説明する。 .まず特定項目検索抽出手段は、ファイル記憶手段に
格納されているファイルAについて特定の抽出項目の条
件で検索し、図3に示されるようにその条件に合致する
レコード群(番号1,2,3,4,6)をファイルaと
する。次に特定項目検索抽出手段は、ファイル記憶手段
に格納されているファイルBについて特定の抽出項目の
条件で検索し、図3に示されるように、その条件に合致
するレコード群(番号2,3,4,5,6,7,8,
9)をファイルbとする。さらに特定項目検索抽出手段
は、ファイル記憶手段に格納されているファイルCにつ
いて特定の抽出項目の条件で検索し、図3に示されるよ
うにその条件に合致するレコード群(番号1,2,4,
6,7,8,10,11,12,13)をファイルcと
する。続いて特定項目検索抽出手段は、ファイル記憶手
段に格納されているファイルDについて特定の抽出項目
の条件で検索し、図3に示されるようにその条件に合致
するレコード群(番号1,2,3,4,5,6,7,
8,9,10,20,30,40)をファイルdとす
る。ここで、ファイルaにおけるレコード件数を
[a]、ファイルbにおけるレコード件数を[b]、フ
ァイルcにおけるレコード件数を[c]、ファイルdに
おけるレコード件数を[d]とすると図3に示されるよ
うに、[a]<[b]<[c]<[d]の関係にある。 .比較ファイル選択手段は、特定項目検索抽出手段に
て作成されたファイルa,ファイルb,ファイルc,フ
ァイルdの中から1番最初に比較するファイルの1つを
求める。ここでは、ファイルa,ファイルb,ファイル
c,ファイルdにおいて、共通項目イを有するレコード
を検索したときの最終検索対象レコードの件数[x]は
[x]≦[a]<[b]<[c]<[d]という関係が
ある。また検索対象となるレコード件数が少ない方が処
理時間も短いので、1番最初に比較するファイルの1つ
は、最終抽出レコードの件数[x]に最も近いレコード
件数を有するファイルaが選択される。 さらに、比較ファイル選択手段は、ファイルaと比較
するもう一つのファイルを求める。ここでは、ファイル
aがファイルbに含まれる確率を{a−b}、ファイル
aがファイルcに含まれる確率を{a−c}、ファイル
aがファイルdに含まれる確率を{a−d}と表した場
合、これらは{a−b}<{a−c}<{a−d}とい
う関係にあるので、はじめに最もしぼりこんだ状態に抽
出する組み合わせになるファイルbが選択される。 .ファイル比較手段は、図3に示されるようにファイ
ルaとファイルbを比較し、ファイルabを作成する。
ここでは、ファイルabは番号2,3,4,6のレコー
ド群から構成されている。 .比較ファイル選択手段は、次に比較するファイルと
してファイルcを選択する。 .ファイル比較手段は、図3に示されるようにファイ
ルabとファイルcを比較し、ファイルabcを作成す
る。ここでは、ファイルabcは番号2,4,6のレコ
ード群から構成されている。 .比較ファイル選択手段は、次に比較するファイルと
してファイルdを選択する。 .ファイル比較手段は、図3に示されるようにファイ
ルabcとファイルdを比較し、最終抽出ファイルxを
作成するとともに出力手段5に出力する。ここでは、フ
ァイルxは番号2,4,6のレコード群から構成されて
いる。 つまり、各検索対象ファイルの特定の抽出項目の条件で
検索した結果のレコード件数の最も少ないファイルと、
次にレコード件数の少ないファイルとを最初に比較し、
作成された第1の中間ファイルは、さらにその次に件数
の少ないファイルと比較し、第2の中間ファイルを作成
し、以降最終の検索対象ファイルまで順次比較を繰り返
すことにより、最終検索対象レコードを抽出する。この
ように、抽出結果の少ないファイルから順に比較するこ
とにより自動的に最適条件でレコード検索を行うことが
できる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. In the embodiment shown in FIG. 1, a file storage unit 4 in which a search target file is stored, and a specific item search / extract unit 2 that searches and extracts a specific item from a search target file stored in the file storage unit 4. , A comparison file selecting means 1 for selecting a file to be compared from the files extracted by the specific item searching and extracting means 2 and a file comparing means 3 for comparing the files selected by the comparison file selecting means 1. When,
The output means 5 outputs the search / extraction result of the file comparison means 3. Here, the comparison file selection means 1 has a function of sequentially selecting the files extracted by the specific item search extraction means 2 from the file having the smallest number of records. Further, it is assumed that the file storage means stores four files A, B, C, and D as search target files, as shown in FIG. The search target file A is composed of a plurality of records having the common items a, b, c, and d, and the search target file B is composed of a plurality of records having the common items a, h, and f. The target file C is composed of a plurality of records having common items A, G, C, and R, and is a search target file D.
Is composed of a plurality of records having common items a, n, le, and w. Next, the operation of this embodiment will be described. Here, a case will be described in which item A is used as a search keyword and records that are common to all files are extracted. . First, the specific item search / extract unit searches the file A stored in the file storage unit under the condition of the specific extraction item, and as shown in FIG. 3, a record group (numbers 1, 2, 3) that matches the condition. , 4, 6) is a file a. Next, the specific item search / extract unit searches the file B stored in the file storage unit under the condition of the specific extraction item, and as shown in FIG. 3, a record group (numbers 2, 3) that matches the condition. , 4, 5, 6, 7, 8,
Let 9) be a file b. Further, the specific item search / extracting unit searches the file C stored in the file storage unit under the condition of the specific extraction item, and as shown in FIG. 3, a record group (numbers 1, 2, 4) that matches the condition. ,
6, 7, 8, 10, 11, 12, 13) is a file c. Subsequently, the specific item search / extract unit searches the file D stored in the file storage unit under the condition of the specific extraction item, and as shown in FIG. 3, a group of records (numbers 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 20, 30, 40) is a file d. Here, assuming that the number of records in the file a is [a], the number of records in the file b is [b], the number of records in the file c is [c], and the number of records in the file d is [d], as shown in FIG. And [a] <[b] <[c] <[d]. . The comparison file selection means finds one of the files to be compared first among the files a, b, c and d created by the specific item search / extraction means. Here, in the files a, b, c, and d, the number [x] of the final search target records when the record having the common item a is searched is [x] ≦ [a] <[b] <[ There is a relationship of c] <[d]. Since the processing time is shorter when the number of records to be searched is smaller, the file a having the record number closest to the number [x] of the last extracted records is selected as one of the first files to be compared. . Further, the comparison file selection means obtains another file to be compared with the file a. Here, the probability that the file a is included in the file b is {a−b}, the probability that the file a is included in the file c is {a−c}, and the probability that the file a is included in the file d is {a−d}. When these are expressed, since these have a relation of {ab} <{ac}} {ad}, the file b that is the combination to be extracted in the most squeezed state is selected first. . The file comparison means compares the file a and the file b as shown in FIG. 3, and creates the file ab.
Here, the file ab is composed of a record group of numbers 2, 3, 4, and 6. . The comparison file selection means selects the file c as a file to be compared next. . The file comparison means compares the file ab and the file c as shown in FIG. 3, and creates the file abc. Here, the file abc is composed of a record group of numbers 2, 4, and 6. . The comparison file selection means selects the file d as a file to be compared next. . The file comparison means compares the file abc with the file d as shown in FIG. 3, creates the final extracted file x, and outputs it to the output means 5. Here, the file x is composed of a record group of numbers 2, 4, and 6. In other words, the file with the smallest number of records as a result of searching with the condition of the specific extraction item of each search target file,
Then compare the file with the fewest records first,
The first intermediate file created is compared with the file with the next smallest number of files, a second intermediate file is created, and the final search target record is determined by repeating the sequential comparison until the final search target file. Extract. In this way, the records can be automatically searched under the optimum conditions by sequentially comparing the files with the smallest extraction results.

【0008】[0008]

【発明の効果】本発明は以上のように構成され機能する
ので、これによると、自動的に常に最適条件でレコード
検索を行うことができ、これがため、ファイルにおける
レコード件数が増減しても、検索時間に遅延を生じるこ
とがないという従来にない優れたレコード検索装置を提
供することができる。
Since the present invention is constructed and functions as described above, according to the present invention, it is possible to automatically perform a record search under the optimum conditions automatically, and therefore, even if the number of records in a file increases or decreases. It is possible to provide an unprecedented excellent record search device that does not cause a delay in search time.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例を示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】図1の実施例の動作を説明するための説明図で
ある。
FIG. 2 is an explanatory diagram for explaining the operation of the embodiment of FIG.

【図3】図1の実施例の他の動作を示す説明図である。FIG. 3 is an explanatory diagram showing another operation of the embodiment of FIG.

【符号の説明】[Explanation of symbols]

1 比較ファイル選択手段 2 特定項目検索抽出手段 3 ファイル比較手段 4 ファイル記憶手段 5 出力手段 1 comparison file selection means 2 specific item search extraction means 3 file comparison means 4 file storage means 5 output means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 検索対象ファイルが格納されているファ
イル記憶手段と、このファイル記憶手段に格納されてい
る検索対象ファイルに対し特定項目について検索抽出を
行う特定項目検索抽出手段と、この特定項目検索抽出手
段にて抽出されたファイルの中から比較するファイルを
選択する比較ファイル選択手段とを備え、この比較ファ
イル選択手段にて選択されたファイルの比較を行うファ
イル比較手段を装備したことを特徴とするレコード検索
装置。
1. A file storage unit in which a search target file is stored, a specific item search and extraction unit that searches and extracts a specific item from a search target file stored in the file storage unit, and the specific item search. A comparison file selection means for selecting a file to be compared from the files extracted by the extraction means, and a file comparison means for comparing the files selected by the comparison file selection means. Record retrieving device.
【請求項2】 前記比較ファイル選択手段が、前記特定
項目検索抽出手段にて抽出されたファイルの中でレコー
ド件数の少ないファイルから順に選択する機能を有する
ことを特徴とする請求項1記載のレコード検索装置。
2. The record according to claim 1, wherein the comparison file selection means has a function of sequentially selecting files having a smaller number of records among files extracted by the specific item search / extraction means. Search device.
JP4193388A 1992-06-26 1992-06-26 Record retrieval device Withdrawn JPH0612455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4193388A JPH0612455A (en) 1992-06-26 1992-06-26 Record retrieval device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4193388A JPH0612455A (en) 1992-06-26 1992-06-26 Record retrieval device

Publications (1)

Publication Number Publication Date
JPH0612455A true JPH0612455A (en) 1994-01-21

Family

ID=16307110

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4193388A Withdrawn JPH0612455A (en) 1992-06-26 1992-06-26 Record retrieval device

Country Status (1)

Country Link
JP (1) JPH0612455A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3941315A1 (en) * 1988-12-16 1990-06-21 Hitachi Koki Kk DEVICE FOR AVOIDING ANGLED PAPER SHEETS
US6423480B2 (en) 1999-12-27 2002-07-23 Sumitomo Chemical Company, Limited Remover composition

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3941315A1 (en) * 1988-12-16 1990-06-21 Hitachi Koki Kk DEVICE FOR AVOIDING ANGLED PAPER SHEETS
US6423480B2 (en) 1999-12-27 2002-07-23 Sumitomo Chemical Company, Limited Remover composition

Similar Documents

Publication Publication Date Title
US6741985B2 (en) Document retrieval system and search method using word set and character look-up tables
Van Rijsbergen et al. Document clustering: An evaluation of some experiments with the Cranfield 1400 collection
JP2607818B2 (en) Method and apparatus for determining whether a record is stored in a computer system
EP0510634B1 (en) Data base retrieval system
JPH11282876A (en) Document retrieving device
CN111868710A (en) Random extraction forest index structure for searching large-scale unstructured data
Li et al. Mining the smallest association rule set for predictions
JPH05265708A (en) Computer operating method
JPH11161658A (en) Method and device for calculating priority of additional retrieval word and storing medium housing priority calculating program of additional retrieval word
JPH06223117A (en) Retrieval solution converging method
JPH0612455A (en) Record retrieval device
CN110362669B (en) Method suitable for fast keyword retrieval
JPH11338873A (en) Reretrieval method and device, storage medium storing reretrieval program, additional retrieval word candidate display method and device, and storage medium storing additional retrieval word candidate display program
JPH04340163A (en) Keyword retrieval system
KR100434718B1 (en) Method and system for indexing document
JPS61141036A (en) Data retrieval system
JPH10177582A (en) Method and device for retrieving longest match
JPH08305710A (en) Method for extracting key word of document and document retrieving device
JPH02153474A (en) Unnecessary word dictionary generating device
JPH07262199A (en) Retrieval result sorter
JPH08314970A (en) Keyword extracting device
JPH0452967A (en) And operation processing system for set file
JPH05158984A (en) Device for extracting character string
JPH10240743A (en) Information storage and retrieval method and system therefor
JPH09330322A (en) Data retrieval device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990831