JPH0475551B2 - - Google Patents

Info

Publication number
JPH0475551B2
JPH0475551B2 JP58162742A JP16274283A JPH0475551B2 JP H0475551 B2 JPH0475551 B2 JP H0475551B2 JP 58162742 A JP58162742 A JP 58162742A JP 16274283 A JP16274283 A JP 16274283A JP H0475551 B2 JPH0475551 B2 JP H0475551B2
Authority
JP
Japan
Prior art keywords
search
keyword
output
register
keywords
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.)
Expired - Lifetime
Application number
JP58162742A
Other languages
Japanese (ja)
Other versions
JPS6054044A (en
Inventor
Hachiro Yamada
Hajime Nagai
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP58162742A priority Critical patent/JPS6054044A/en
Publication of JPS6054044A publication Critical patent/JPS6054044A/en
Publication of JPH0475551B2 publication Critical patent/JPH0475551B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90339Query processing by using parallel associative memories or content-addressable memories

Description

【発明の詳細な説明】 本発明は1つ以上のキーワードと検索条件を与
えることにより、これを満たすデータを出力する
内容検索装置に係る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a content search device that outputs data that satisfies one or more keywords and search conditions by providing them.

上記内容検索装置はデータベースシステムの重
要な構成要素である。データベースは与えられた
キーワードに関連するデータを引出すサービスを
行なうものであり、記憶容量が数ギガバイト以上
に及ぶために、磁気デイスクあるいは磁気テープ
等の大容量記憶装置に記録される。このような大
容量記憶装置を短時間で検索することは非常に困
難である。そこで、キーワードと検索条件を入力
とし、それを満たすデータの大容量記憶装置での
格納アドレスを求め、その後、このアドレスを用
いて大容量記憶装置から検索キーワードに整合
し、検索条件を満たすデータを求める事が行なわ
れている。このときに、インデクス・テーブルと
呼ばれるキーワードと格納アドレスとの関係表が
使われる。インデクス・テーブルでは検索キーワ
ードから格納アドレスを求める内容検索処理が行
なわれる。
The content retrieval device described above is an important component of a database system. A database provides a service for extracting data related to a given keyword, and has a storage capacity of several gigabytes or more, so it is recorded on a large-capacity storage device such as a magnetic disk or magnetic tape. It is very difficult to search such a large capacity storage device in a short time. Therefore, input a keyword and search condition, find the storage address on the mass storage device of the data that meets the keyword, and then use this address to match the search keyword from the mass storage device and retrieve the data that meets the search condition. What you ask for is being done. At this time, a relationship table between keywords and storage addresses called an index table is used. In the index table, content search processing is performed to obtain a storage address from a search keyword.

このような内容検索処理を行なう内容検索装置
の実現には、連想記憶素子の使用が望ましいが、
記憶容量と価格の面で実用に合うものがない。そ
こで、通常の記憶素子を用いて内容検索処理を行
なわせることが必要となる。この場合の内容検索
装置は、通常の記憶素子を用いた記憶装置の全番
地の内容を読んで、各番地のキーワードを比較
し、一致した番地のデータを求めている。
In order to realize a content retrieval device that performs such content retrieval processing, it is desirable to use associative memory elements.
There is nothing practical in terms of storage capacity and price. Therefore, it is necessary to perform content retrieval processing using a normal storage element. The content retrieval device in this case reads the contents of all addresses in a storage device using ordinary storage elements, compares keywords at each address, and finds data at matching addresses.

このような内容検索装置の検索動作に際して
は、一般に複数個のキーワードとそれらの関係を
論理式で示した検索条件が与えられる。マイクロ
プロセツサ等による論理式の実行時間は、メモリ
のアクセスタイムの数十倍に及ぶため、各番地毎
に検索条件を判断すると、検索時間が膨大にな
る。このため、検索キーワード毎に検索を繰返す
方法が行なわれる。例えば、3個の検索キーワー
ドA,B,Cの積による検索では、まず検索キー
ワードAで検索し、整合したアドレスに識別マー
カをセツトし、次に検索キーワードBで検索し、
整合しないアドレスの識別マーカをリセツトす
る。同様で検索キーワードCに整合しない識別マ
ーカをリセツトし、最後に識別マーカがセツトさ
れているアドレスのデータを出力することで、
A・B・Cの検索条件による検索が行なわれる。
In the search operation of such a content search device, search conditions are generally given that represent a plurality of keywords and their relationships in logical formulas. The execution time of a logical formula by a microprocessor or the like is several tens of times longer than the memory access time, so if search conditions are determined for each address, the search time will be enormous. For this reason, a method is used in which the search is repeated for each search keyword. For example, in a search using the product of three search keywords A, B, and C, first search with search keyword A, set an identification marker at the matching address, then search with search keyword B,
Reset identification markers for mismatched addresses. Similarly, by resetting the identification marker that does not match the search keyword C, and finally outputting the data of the address where the identification marker is set,
A search is performed using search conditions A, B, and C.

このような従来の内容検索装置は、複数個のキ
ーワードに関する検索のために、全アドレスの内
容を複数回読取ることを必要とし、検索時間が大
きすぎる欠点を有していた。
Such conventional content search devices have the disadvantage that the content of all addresses must be read multiple times in order to search for a plurality of keywords, and the search time is too long.

本発明は上記従来の欠点を容易に解決し、複数
個のキーワードによる検索を短時間に処理可能な
内容検索装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a content search device that easily solves the above-mentioned conventional drawbacks and can process searches using a plurality of keywords in a short time.

本発明によれば、N(Nは正整数)個のキーワ
ード部とデータ部とからなるレコードを複数個記
憶するレコード記憶手段と、このレコード記憶手
段の内容を順次出力させるアドレス走査手段と、
外部から与えられた複数個の検索キーワードを記
憶する検索キーワード・レジスタと、この検索キ
ーワード・レジスタの内容と前記レコード記憶手
段が出力するレコードの中の複数個のキーワード
部の内容との比較を行なうキーワード比較手段
と、前記N個の検索キーワードの論理式で与えら
れる検索条件を、論理的に生成可能な2N個の単位
検索条件の中のいずれかを示す2Nビツトの検索条
件符号に変換する検索条件符号化手段と、前記キ
ーワード比較手段の出力により、前記2Nビツトの
検索条件符号の中のビツト位置を指定し、この指
定されたビツト位置の値を前記検索条件による検
索結果として出力する切換え手段とを含むことを
特徴とする内容検索装置が得られる。
According to the present invention, a record storage means for storing a plurality of records each including N (N is a positive integer) keyword sections and a data section; and an address scanning means for sequentially outputting the contents of the record storage means;
A search keyword register that stores a plurality of externally given search keywords, and the contents of this search keyword register are compared with the contents of the plurality of keyword sections in the record output by the record storage means. Converting the search conditions given by the logical expressions of the N search keywords into a 2N -bit search condition code indicating one of the 2N unit search conditions that can be logically generated. A bit position in the 2N- bit search condition code is specified by the output of the search condition encoding means and the keyword comparison means, and the value of the specified bit position is output as the search result based on the search condition. A content retrieval device is obtained, which is characterized in that it includes a switching means for switching.

以下図面を用いて本発明の詳細な説明を行な
う。
The present invention will be described in detail below using the drawings.

第1図a,bはインデクステーブルの説明図で
ある。インデクステーブル120はテータベース
が格納された大容量磁気デイスク記憶装置110
の中の各レコードのアドレスとそのレコードに割
当てられたキーワード130との対応関係を示す
ものである。このインデクステーブル120は検
索キーワードに対してそのキーワードを含むレコ
ードの格納アドレスをいち早く見出せるように、
高速のメモリに格納される必要がある。例えば、
検索キーワードとして年令が30、職種が技術、
氏名が佐藤のような年令・職種・氏名(・は論理
積を示す)の検索条件が与えられると、アドレス
として110が出力される。
FIGS. 1a and 1b are explanatory diagrams of the index table. The index table 120 is a large-capacity magnetic disk storage device 110 in which a data base is stored.
It shows the correspondence between the address of each record in , and the keyword 130 assigned to that record. This index table 120 is designed to quickly find the storage address of a record containing a search keyword.
Must be stored in fast memory. for example,
The search keyword is age 30, occupation is technology,
When search conditions such as age, job type, and name (the "." indicates a logical product) are given, such as the name Sato, 110 is output as the address.

第2図は本発明による内容検索装置の一実施例
を示す構成図である。
FIG. 2 is a block diagram showing an embodiment of the content search device according to the present invention.

第1図に示したように年令、職種、氏名等の3
個のキーワードとアドレス等のデータとからなる
レコードは、登録時にデータバス201を介し
て、それぞれレコードメモリ210の第1キーワ
ード部211、第2キーワード部212、第3キ
ーワード部213及びデータ部214に格納され
る。レコードメモリ210には登録された多数の
レコードが格納されている。アドレス走査回路2
20はレコードメモリ210の番地指定により、
格納されたレコードの選択を行なう。
As shown in Figure 1, age, occupation, name, etc.
Records consisting of keywords and data such as addresses are stored in the first keyword section 211, second keyword section 212, third keyword section 213, and data section 214 of the record memory 210 via the data bus 201 at the time of registration. Stored. A large number of registered records are stored in the record memory 210. Address scanning circuit 2
20 is specified by the address of the record memory 210.
Select stored records.

検索時には、データバス201を介して3つの
検索キーワードA,B,Cが、それぞれA,B,
Cレジスタ231,232,233に格納され、
また検索条件符号器240に検索条件241が供
給される。検索条件241は検索キーワードA,
B,Cの論理積あるいは論理和で表現される。例
えば、検索キーワードAと検索キーワードCに等
しいか、又は検索キーワードBに等しいという検
索条件はA・C+Bと表わされる。このような検
索条件A・C+Bが入力されると、検索条件符号
器240は検索条件を主加法標準形、すなわち、 A・C→A・B・C+A・・C B→A・B・C+A・B・+・B・C+
A・B・ に変形する。ここで、A,B,Cの3つのキーワ
ードの真理値表から求まる8つの単位検索条件
A・B・C,A・B・,A・・C,A・,
C,・B・C,・B・,,・・C,
A・・を10進数7,6,5,4,3,2,
1,0または2進コード111,110,101,100,
011,010,001,000と対応ずけると、8ビツトパ
ラレルの検索条件符号の何ビツト目(10進数)が
“1”であるかによつて、その位置を示す2進コ
ードに対応した単位検索条件が含まれるか否かを
表示できる。例えば、A・B・の検索条件は2
進数110または10進数6に対応した単位検索条件
を含むので右端を0番目として6番目が1となる
ビツトパターン〓01000000〓の検索条件符号に変
換される。また、上記のA・C+Bの検索条件は
2進法の111,110,101,011,010すなわち10進
数の7,6,5,3,2に対応した単位検索条件
ABC,AB,A,C,BC,Bを含む
ので〓11101100〓の検索条件符号に変換される。
一般にn個のキーワードに関する検索条件は2n
ツトの検索条件符号に変換される。以上述べた検
索条件符号を発生してから、レコードメモリ21
0の内容の検索を開始す。
During a search, three search keywords A, B, and C are sent via the data bus 201 to A, B, and C, respectively.
Stored in C registers 231, 232, 233,
Also, a search condition 241 is supplied to a search condition encoder 240 . Search condition 241 is search keyword A,
It is expressed as the logical product or logical sum of B and C. For example, the search condition that search keyword A is equal to search keyword C or equal to search keyword B is expressed as A.C+B. When such a search condition A・C+B is input, the search condition encoder 240 converts the search condition into the prime additive standard form, that is, A・C→A・B・C+A・・C B→A・B・C+A・B・+・B・C+
Transforms into A.B. Here, eight unit search conditions A・B・C, A・B・, A・・C, A・,
C,・B・C,・B・,,・・C,
A... as a decimal number 7, 6, 5, 4, 3, 2,
1, 0 or binary code 111, 110, 101, 100,
If it corresponds to 011, 010, 001, 000, the unit corresponding to the binary code indicating the position depends on which bit (decimal number) of the 8-bit parallel search condition code is "1". You can display whether the search condition is included or not. For example, the search condition for A.B. is 2.
Since it includes a unit search condition corresponding to base number 110 or decimal number 6, it is converted to a search condition code of the bit pattern 〓01000000〓 where the right end is 0 and the 6th is 1. In addition, the search conditions for A/C+B above are unit search conditions corresponding to 111, 110, 101, 011, 010 in binary, that is, 7, 6, 5, 3, 2 in decimal.
Since it includes ABC, AB, A, C, BC, and B, it is converted to the search condition code 〓11101100〓.
Generally, a search condition regarding n keywords is converted into a 2n - bit search condition code. After generating the search condition code described above, the record memory 21
Start searching for the contents of 0.

A,B,Cレジスタ231,232,233に
格納された検索キーワードA,B,Cとレコード
メモリ240内の第1、第2、第3キーワード部
211,212,213との比較が、それぞれ第
1、第2、第3比較器251,252,253で
行なわれる。それぞれの比較結果3ビツトは、切
換え回路260に供給され、8ビツトの検索条件
符号内の1ビツトを選択する。この選択された1
ビツトは検索結果を示すことになる。先に示した
検索条件では検索条件符号器240に貯えられた
〓11101100〓の検索条件符号が8ビツト並列に切
換え回路260に入力されているので、検索キー
ワードA,B,Cの順の比較結果が〓010〓,〓
011〓,〓101〓,〓110〓,〓111〓(1が一致を
示す)のいずれの場合にも、これ等に対応した単
位検索条件を含むA・C+Bの検索条件が満たさ
れたと判定する検索結果〓1〓が切換え回路26
0から出力される。〓1〓の検索結果が発生する
と、バスバツフア270が動通状態になり、レコ
ードメモリ210内のデータ部214から整合し
たレコードのデータがデータバス201上に出力
される。
The search keywords A, B, and C stored in the A, B, and C registers 231, 232, and 233 are compared with the first, second, and third keyword sections 211, 212, and 213 in the record memory 240, respectively. This is performed by first, second, and third comparators 251, 252, and 253. The 3 bits of each comparison result are supplied to a switching circuit 260, which selects 1 bit within the 8-bit search condition code. This selected one
The bits will indicate the search results. In the search condition shown above, the search condition code 〓11101100〓 stored in the search condition encoder 240 is input to the switching circuit 260 in 8 bits in parallel, so the comparison result of the search keywords A, B, and C in the order is〓010〓、〓
In any case of 011〓, 〓101〓, 〓110〓, 〓111〓 (1 indicates a match), it is determined that the search conditions A, C+B including the corresponding unit search conditions are satisfied. Search result 1 is switching circuit 26
Output from 0. When the search result 〓1〓 occurs, the bus buffer 270 becomes active, and the data of the matched record is outputted from the data section 214 in the record memory 210 onto the data bus 201.

以上で1レコードに関する検索が終了したの
で、アドレス走査回路220が示すレコードメモ
リ210のアドレスを増加させ、次のレコードに
関する検索を継続する。このようにして、アドレ
ス走査回路220がレコードメモリ210の全ア
ドレスの走査を終了すると全レコードに関する検
索が完了する。
Since the search for one record has been completed above, the address of the record memory 210 indicated by the address scanning circuit 220 is increased, and the search for the next record is continued. In this way, when the address scanning circuit 220 finishes scanning all addresses in the record memory 210, the search for all records is completed.

このように複数個のキーワードによる検索であ
つても、レコードメモリ210の全アドレスを一
度走査するだけで検索が完了する。また、1レコ
ード毎に検索条件を判断する動作も、単に3ビツ
トの検索結果により8ビツトの検索条件符号内の
1ビツトを切換え回路260で選択するだけで済
むため、高速に行なわれる。
Even when searching using a plurality of keywords in this manner, the search is completed by scanning all addresses in the record memory 210 once. Furthermore, the operation of determining the search condition for each record can be performed at high speed because it is sufficient to simply select one bit in the 8-bit search condition code using the 3-bit search result using the switching circuit 260.

第3図は本発明による内容検索装置に用いられ
る検索条件符号器240の構成例を示す。この検
索条件符号器240は論理式で表現された検索条
件を検索条件符号に変換する。この変換は検索条
件の積項毎に行なわれる。
FIG. 3 shows an example of the configuration of a search condition encoder 240 used in the content search device according to the present invention. This search condition encoder 240 converts a search condition expressed by a logical formula into a search condition code. This conversion is performed for each product term of the search conditions.

まず、レジスタ310に検索条件の第1の積項
を符号化して入力する。
First, the first product term of the search condition is encoded and input into the register 310.

先の検索条件A・C+Bでは、第1の積項A・
Cを示す〓101〓がレジスタ310に格納され、
その反転出力〓010〓がオアゲート341,34
2,343に供給される。その後、2n個(nはキ
ーワードの個数)、すなわち8個のクロツク信号
302が供給される。クロツク信号302により
3ビツトのカウンタ320は0から増加し、また
8ビツトのシフトレジスタ330の内容は一巡す
る。負のパルス信号のクロツク信号302はイン
バータ360で反転されシフトレジスタ330の
クロツク入力に供給される。従つて、1つのクロ
ツク信号302が供給されると、まずシフトレジ
スタ330の内容が1ビツトシフトしてから、カ
ウンタ320が増加する。レジスタ310の出力
が〓010〓であると、アンドゲート350の出力
はカウンタ320の内容が〓101〓あるいは〓111
〓のときに〓1〓となる。すなわち、6個目と8
個目のクロツク信号302でシフトレジスタ33
0に〓1〓が書込まれる。従つて、8個のクロツ
ク信号302が供給された後のシフトレジスタ3
30の内容は〓00000000〓から〓10100000〓とな
る。
In the previous search condition A・C+B, the first product term A・
〓101〓 indicating C is stored in the register 310,
The inverted output 〓010〓 is the OR gate 341, 34
2,343. Thereafter, 2n clock signals 302 (n is the number of keywords), ie, 8 clock signals 302 are supplied. A 3-bit counter 320 is incremented from 0 by a clock signal 302, and the contents of an 8-bit shift register 330 are cycled through. The negative pulse signal clock signal 302 is inverted by an inverter 360 and provided to the clock input of the shift register 330. Therefore, when one clock signal 302 is applied, the contents of shift register 330 are first shifted by one bit, and then counter 320 is incremented. When the output of the register 310 is 〓010〓, the output of the AND gate 350 means that the contents of the counter 320 are 〓101〓 or 〓111〓.
When 〓, it becomes 〓1〓. That is, the 6th and 8th
The shift register 33 receives the clock signal 302.
〓1〓 is written to 0. Therefore, the shift register 3 after being supplied with eight clock signals 302
The content of 30 becomes from 〓00000000〓 to 〓10100000〓.

次に検索条件A・C+Bの第2の積項Bを示す
〓010〓がレジスタ330に入力され、オアゲー
ト341,342,343にそれぞれ〓101〓が
供給される。第1の積項と同様に8個のクロツク
信号302を供給すると、アンドゲート350の
出力はカウンタ320の内容が〓010〓,〓011
〓,〓110〓,〓111〓のときに〓1〓となる。
Next, 〓010〓 indicating the second product term B of the search conditions A and C+B is input to the register 330, and 〓101〓 is supplied to OR gates 341, 342, and 343, respectively. When eight clock signals 302 are supplied in the same way as for the first product term, the output of the AND gate 350 indicates that the contents of the counter 320 are 〓010〓, 〓011
When 〓, 〓110〓, 〓111〓, it becomes 〓1〓.

従つて、シフトレジスタ330の内容はオアゲ
ート344でアンドゲート350の出力が加算さ
れ、〓10100000〓から〓11101100〓となる。検索
条件A・C+Bでは2つの積項で構成されている
ので、これで検索条件符号の生成が終了する。さ
らに多くの積項を含んでいる場合には、積項毎に
同様な動作を繰返す。全ての積項についての動作
が終了するとシフトレジスタ330から検索条件
符号331が出力される。検索条件A・C+Bの
例での検索条件符号は〓11101100〓となる。
Therefore, the contents of the shift register 330 are changed from 〓10100000〓 to 〓11101100〓 by adding the output of the AND gate 350 at the OR gate 344. Since search conditions A and C+B are composed of two product terms, the generation of the search condition code is now completed. If more product terms are included, similar operations are repeated for each product term. When the operations for all product terms are completed, a search condition code 331 is output from the shift register 330. The search condition code in the example of search conditions A and C+B is 〓11101100〓.

この検索条件符号331は第2図の切換え回路
260に供給される。
This search condition code 331 is supplied to the switching circuit 260 in FIG.

なお、シフトレジスタ330はカウンタ320
の内容をアドレス入力とするRAMに置換えるこ
とも可能である。また、このRAMは切換え回路
260としても利用可能である。
Note that the shift register 330 is a counter 320.
It is also possible to replace the contents of with a RAM that uses the address input. Further, this RAM can also be used as a switching circuit 260.

この検索条件符号発生器は論理積と論理和で表
現された検索条件に適用される。反転、すなわち
A,,を含む検索条件の処理は、積項内の反
転部分を示す反転レジスタと、カウンタ320と
オアゲート341,342,343との間にエク
スクルーシブ・オアゲートとを設け、反転レジス
タの内容に基づいてカウンタ320の内容を反転
させてオアゲート341,342,343に供給
することで可能である。
This search condition code generator is applied to search conditions expressed by AND and OR. To process a search condition including inversion, that is, A,, an inversion register indicating the inversion part in the product term and an exclusive OR gate are provided between the counter 320 and the OR gates 341, 342, 343, and the contents of the inversion register are processed. This is possible by inverting the contents of the counter 320 based on , and supplying it to the OR gates 341, 342, and 343.

以上述べたように、複数個のキーワードによる
検索においても、本発明の内容検索装置はレコー
ドメモリ210の全アドレスを一度走査するだけ
で検索を完了できる。従来の識別マーカにより、
検索条件を判断していた内容検索装置では、検索
条件を満たすレコードを見付けるために、検索キ
ーワードの個数回だけレコードメモリ210の全
アドレスを走査する必要があつた。従つて、検索
キーワード数が4個の場合、本発明の内容検索装
置の検索時間は従来の4分の1に短縮される。
As described above, even in a search using a plurality of keywords, the content search device of the present invention can complete the search by scanning all addresses in the record memory 210 once. With traditional identification markers,
In a content search device that determines search conditions, it is necessary to scan all addresses in the record memory 210 as many times as the number of search keywords in order to find a record that satisfies the search conditions. Therefore, when the number of search keywords is four, the search time of the content search device of the present invention is reduced to one-fourth of the conventional search time.

なお、第3図に示した検索条件符号器は一例を
示したものであり、マイクロプロセツサ等により
ソフトウエアで検索条件符号を生成することも可
能である。また、さらに多くの個数の検索キーワ
ードを利用することも可能であり、またキーワー
ドの代りに、キーワードをハツシングして生成で
きるキーワードを用いて内容検索を行う時にも本
発明を適用できる。従つて、以上の記載は本発明
の特許請求範囲を限定するものではない。
Note that the search condition encoder shown in FIG. 3 is an example, and the search condition code can also be generated by software using a microprocessor or the like. Further, it is possible to use a larger number of search keywords, and the present invention can also be applied when performing a content search using keywords that can be generated by hashing keywords instead of keywords. Therefore, the above description is not intended to limit the scope of the claimed invention.

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

第1図a,bは一般的なデータベースの構成
図、第2図は本発明の一実施例の内容検索装置の
構成図、第3図は検索条件符号器の構成図であ
る。 110…磁気デイスク、120…インデクス・
テーブル、130…キーワード、210…レコー
ドメモリ、211…第1キーワード部、212…
第2キーワード部、213…第3キーワード部、
214…データ部、220…アドレス走査回路、
231…Aレジスタ、232…Bレジスタ、23
3…Cレジスタ、240…検索条件符号器、25
1…第1比較器、252…第2比較器、253…
第3比較器、260…切換え回路、270…バス
バツフア、310…レジスタ、320…カウン
タ、330…シフトレジスタ、341,342,
343,344…オアゲート、350…アンドゲ
ート、360…インバータ。
1A and 1B are block diagrams of a general database, FIG. 2 is a block diagram of a content retrieval device according to an embodiment of the present invention, and FIG. 3 is a block diagram of a search condition encoder. 110...Magnetic disk, 120...Index
Table, 130...keyword, 210...record memory, 211...first keyword section, 212...
Second keyword part, 213...Third keyword part,
214...data section, 220...address scanning circuit,
231...A register, 232...B register, 23
3...C register, 240...Search condition encoder, 25
1...first comparator, 252...second comparator, 253...
Third comparator, 260... switching circuit, 270... bus buffer, 310... register, 320... counter, 330... shift register, 341, 342,
343, 344...OR gate, 350...AND gate, 360...Inverter.

Claims (1)

【特許請求の範囲】[Claims] 1 N(Nは正整数)個のキーワード部とデータ
部とからなるレコードを複数個記憶するレコード
記憶手段と、このレコード記憶手段の内容を順次
出力させるアドレス走査手段と、外部から与えら
れた複数個の検索キーワードを記憶する検索キー
ワード・レジスタと、この検索キーワード・レジ
スタの内容と前記レコード記憶手段が出力するレ
コードの中の複数個のキーワード部の内容との比
較を行なうキーワード比較手段と、前記N個の検
索キーワードの論理式で与えられる検索条件を記
憶するNビツト以上の検索条件レジスタと、クロ
ツク信号に同期して増加するNビツト以上のカウ
ンタと、このカウンタのNビツトの出力と前記検
索条件レジスタのNビツトの反転出力とをそれぞ
れ入力とするN個の第1の論理和回路と、この第
1の論理和回路の出力を入力とする論理積回路
と、2Nビツト以上の検索条件符号に変換するシフ
トレジスタと、前記論理積回路の出力と前記シフ
トレジスタの出力とを入力とし前記シフトレジス
タに出力がつながる第2の論理和回路と、前記キ
ーワード比較手段の出力により前記2Nビツトの検
索条件符号の中のビツト位置を指定し、この指定
されたビツト位置の値を前記検索条件による検索
結果として出力する切換え手段とを含むことを特
徴とする内容検索装置。
1 record storage means for storing a plurality of records consisting of N (N is a positive integer) keyword parts and data parts; address scanning means for sequentially outputting the contents of this record storage means; a search keyword register for storing search keywords; keyword comparison means for comparing the contents of the search keyword register with the contents of a plurality of keyword parts in the record output by the record storage means; A search condition register of N bits or more that stores search conditions given by logical expressions of N search keywords, a counter of N bits or more that increases in synchronization with a clock signal, and an output of the N bits of this counter and the search. N first OR circuits each receiving the N-bit inverted output of the condition register, an AND circuit receiving the output of the first OR circuit, and a search condition of 2 N bits or more. a shift register that converts the code into a code; a second OR circuit that receives the output of the AND circuit and the output of the shift register and whose output is connected to the shift register ; 1. A content retrieval device comprising a switching means for specifying a bit position in a retrieval condition code and outputting the value of the specified bit position as a search result based on the retrieval condition.
JP58162742A 1983-09-05 1983-09-05 Retrieving device of contents Granted JPS6054044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58162742A JPS6054044A (en) 1983-09-05 1983-09-05 Retrieving device of contents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58162742A JPS6054044A (en) 1983-09-05 1983-09-05 Retrieving device of contents

Publications (2)

Publication Number Publication Date
JPS6054044A JPS6054044A (en) 1985-03-28
JPH0475551B2 true JPH0475551B2 (en) 1992-12-01

Family

ID=15760391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58162742A Granted JPS6054044A (en) 1983-09-05 1983-09-05 Retrieving device of contents

Country Status (1)

Country Link
JP (1) JPS6054044A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS648474A (en) * 1987-07-01 1989-01-12 Canon Kk Document forming device
JP2802064B2 (en) * 1987-08-19 1998-09-21 松下電器産業株式会社 Database processor
JPS6448130A (en) * 1987-08-19 1989-02-22 Matsushita Electric Ind Co Ltd Data base processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49102257A (en) * 1973-02-01 1974-09-27
JPS49126236A (en) * 1973-04-04 1974-12-03
JPS51134545A (en) * 1975-05-17 1976-11-22 Ricoh Co Ltd Information retrieval system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49102257A (en) * 1973-02-01 1974-09-27
JPS49126236A (en) * 1973-04-04 1974-12-03
JPS51134545A (en) * 1975-05-17 1976-11-22 Ricoh Co Ltd Information retrieval system

Also Published As

Publication number Publication date
JPS6054044A (en) 1985-03-28

Similar Documents

Publication Publication Date Title
US3675211A (en) Data compaction using modified variable-length coding
US5293616A (en) Method and apparatus for representing and interrogating an index in a digital memory
JPH0410649B2 (en)
US3290659A (en) Content addressable memory apparatus
JPH0475551B2 (en)
GB1018330A (en)
GB1062999A (en) Data storage and retrieval system
US4332014A (en) Data retrieval system
US3271745A (en) Register search and detection system
JPH0315221B2 (en)
KR960028176A (en) High Speed Digital Image Pattern Matching Circuit
JPS6014324A (en) Associative storage device
SU342185A1 (en) DEVICE FOR SEARCHING INFORMATION
JPS6143734B2 (en)
JP3087488B2 (en) Data restoration circuit
JPS60211540A (en) Data retrieval circuit
JPS63253431A (en) Retrieving system for data base of inverted structure
JPS6373422A (en) Information retrieving device
JPH0550078B2 (en)
JPH069038B2 (en) Direct memory access controller
JPH0467660B2 (en)
JPS60147838A (en) Data retrieving device
JPH0471228B2 (en)
JPS6061842A (en) Access system of structure memory
JPH0550079B2 (en)