JPH04264674A - Method and device for retrieving file - Google Patents

Method and device for retrieving file

Info

Publication number
JPH04264674A
JPH04264674A JP3046115A JP4611591A JPH04264674A JP H04264674 A JPH04264674 A JP H04264674A JP 3046115 A JP3046115 A JP 3046115A JP 4611591 A JP4611591 A JP 4611591A JP H04264674 A JPH04264674 A JP H04264674A
Authority
JP
Japan
Prior art keywords
file
sentence
search
character strings
sentences
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
JP3046115A
Other languages
Japanese (ja)
Inventor
Yoshihiro Goto
良洋 後藤
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.)
Hitachi Healthcare Manufacturing Ltd
Original Assignee
Hitachi Medical 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 Hitachi Medical Corp filed Critical Hitachi Medical Corp
Priority to JP3046115A priority Critical patent/JPH04264674A/en
Publication of JPH04264674A publication Critical patent/JPH04264674A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To retrieve a file including a character string taking a complicated expression method by reading a retrieval condition, consisting of a retrieval condition code composed of a classification code showing that the character string is one sentence or that straddling sentences and the logical combination of plural character strings. CONSTITUTION:The classification code shows whether the character string comes under a retrieval request in one sentence of one file or that straddling the sentences. One sentence means a unit which is segmented from a period (round mark) to the period. The retrival condition code shows the combintation of various longical relations of the character strings such as OR and AND. An operator generates the classification code and the rectrieval condition code in accordance with a retrieval target and a causes a processor to read the retrieval condition and executes a retrieval processing.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ファイル中の文字列の
指定によりファイルを検索する検索方法及び装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a search method and apparatus for searching a file by specifying a character string in the file.

【0002】0002

【従来の技術】ワードプロセッサやワープロソフトで作
成した、文章を含む(一部又は全部に含む両者あり)フ
ァイルを格納しておき、ファイル検索を行いたい例は多
い。従来のファイル検索法は、検索条件を入力し、この
検索条件に合ったファイルを探し出すやり方をとる。こ
の場合、検索条件は、 (1)、文字列ABCを探したい時には、「ABC」を
検索条件とし、プロセッサに読み込ませる。 (2)、2つの文字列ABとCとが存在し、且つ文字列
ABとCとの間には任意の文字の存在を許すような文字
列のもとで、ABとCとを含むファイルを探したい時に
は、「AB*C」を検索条件とし、プロセッサに読み込
ませる。 (3)、2つの文字列ABとCとが存在し、且つ文字列
ABとCとの間には1文字の存在を許すような文字列の
もとで、ABとCとを含むファイルを探したい時には、
「AB?C」を検索条件とし、プロセッサに読み込ませ
る。 等である。プロセッサ内での処理は、検索条件に合致し
た文字列があるか否かをファイル中の文字列とパターン
マッチングによって比較し、一致した文字列を持つファ
イルを出力表示するやり方をとる。
2. Description of the Related Art There are many cases in which it is desired to store files created using a word processor or word processing software that include sentences (sometimes containing both in part or all) and to search for the files. Conventional file search methods involve inputting search conditions and searching for files that match the search conditions. In this case, the search conditions are: (1) If you want to search for the character string ABC, use "ABC" as the search condition and read it into the processor. (2) A file containing AB and C under a character string where two character strings AB and C exist and any character is allowed to exist between character strings AB and C. When you want to search for , use "AB*C" as a search condition and read it into the processor. (3) If two character strings AB and C exist, and one character is allowed to exist between the character strings AB and C, create a file containing AB and C. When you want to search,
Set "AB?C" as a search condition and read it into the processor. etc. Processing within the processor uses pattern matching to compare character strings in files to see if there is a character string that matches the search conditions, and outputs and displays files that have matching character strings.

【0003】0003

【発明が解決しようとする課題】例えば、3つのファイ
ルが存在し、ファイル1には、「迂廻層及び四岡体槽は
軽度高吸収を示し、造影により強く増強されている……
………」とあり、ファイル2に「迂廻層及び四岡体槽に
は軽度高吸収域が見られ、造影により強く増強されてい
る……………」とあり、ファイル3に「迂廻層及び四岡
体槽にはほとんど高吸収域が見られないが、造影には弱
く増影される……………」と記録してある場合、この中
から「高吸収を示す」意味を持つファイルを探したいと
する。上の3文には「高吸収」と「高吸収域」があり、
しかも高吸収が「見られ」、「見られない」、「示し」
となっていて複雑である。こうした3つのファイルから
「高吸収を示す」意味のファイルを、前記従来法によっ
て探し出すことは困難である。
[Problems to be Solved by the Invention] For example, there are three files, and file 1 states, ``The circumferential layer and the Shioka body cistern show mild high absorption and are strongly enhanced by contrast...
File 2 states, ``Slightly high attenuation areas are seen in the circumferential layer and Yotsuoka body cistern, which are strongly enhanced by contrast...'', and file 3 states, ``In the circumferential layer and the Yotsuoka body cistern......'' There are almost no high-absorption areas seen in the Mawari stratum and the Yotsuoka body cistern, but the contrast is weakly enhanced when contrasted. Suppose you want to find a file with . The three sentences above include "high absorption" and "high absorption area".
Moreover, high absorption is ``seen'', ``not seen'', and ``indicated''.
It is complicated. It is difficult to find a file that "exhibits high absorption" from these three files using the conventional method.

【0004】本発明の目的は、複雑な表現方法をとる文
字列含むファイルの検索を可能とするファイルの検索方
法及び装置を提供するものである。
[0004] An object of the present invention is to provide a file retrieval method and apparatus that enable retrieval of files containing character strings using complex expression methods.

【0005】[0005]

【課題を解決するための手段】本発明の検索方法は、文
字列を含む複数のファイルから特定の文字列を含むファ
イルを検索する方法において、1ファイルの1文内での
検索要求か文間にまたがる検索要求かを示す区分コード
と複数の文字列の論理的組合せにより成る検索コードと
より成る検索条件を読み込む処理と、この検索条件中の
区分コードから1文か文間にまたがるかを解読する処理
と、この処理に各ファイル毎に、解読結果に応じた1文
毎又は文間毎に、上記検索条件コードに一致する論理的
組合せがあるか否かを検索し、一致するファイルを見つ
けだす処理と、より成る(請求項1)
[Means for Solving the Problems] The search method of the present invention is a method of searching for a file containing a specific character string from a plurality of files containing character strings. A process of reading a search condition consisting of a category code indicating whether the search request spans over a search code and a search code consisting of a logical combination of multiple character strings, and decoding whether the search request spans one sentence or between sentences based on the category code in the search condition. This process searches each file for each sentence or sentence interval depending on the decoding result to see if there is a logical combination that matches the above search condition code, and finds a matching file. (Claim 1)

【0006】更に本発明の検索方法での論理的組合せは
、複数の文字列を(C1、C2、…、Ci…)(以下C
n、Cmと表記)とした時、(1)、前記ファイル中の
1文に文字列Cn、Cm、…がすべて含まれる場合、(
2)、前記ファイル中の1文に文字列Cn、Cm、…の
いずれかが含まれる場合、(3)、前記ファイル中の1
文に文字列Cn、Cm、…がすべて含まれ、かつ、他C
x、cy、…の文字列のいずれかが含まれる場合、(4
)、前記ファイル中の1文に前記(1)、(2)、(3
)のいずれかの場合が成立し、他の文にも前記(1)、
(2)、(3)のいずれかの場合が成立する場合、(5
)、前記ファイル中に文字列Cn、Cm、…のいずれか
が含まれる場合、(6)、前記ファイル中の1文に文字
列Cn、Cm、…がすべて含まれない場合、(7)、前
記ファイル中に文字列Cn、Cm、…のすべて含まれな
い場合、(8)、前記ファイル中の1文に文字列Cn、
Cm、…がすべて含まれず、且つ、他の文字列Cx、C
y、…のいずれかが含まれる場合、(9)、前記ファイ
ル中の1文に前記(8)の場合が成立し、他の文にも前
記(8)の場合が成立する場合、(10)、前記ファイ
ル中の文に前記(8)が成立する場合、のいずれかとす
る(請求項2)。
Furthermore, the logical combination in the search method of the present invention is to combine a plurality of character strings (C1, C2,..., Ci...) (hereinafter C
n, Cm), (1) If one sentence in the file contains all the character strings Cn, Cm,...
2) If one sentence in the file contains any of the character strings Cn, Cm,..., (3) 1 in the file
The sentence contains all the character strings Cn, Cm,... and other C
If any of the character strings x, cy, ... is included, (4
), one sentence in the file contains the above (1), (2), (3
) is true, and the other sentences also have the above (1),
If either of (2) or (3) holds true, (5
), if the file contains any of the character strings Cn, Cm, ... (6), if one sentence in the file does not contain all the character strings Cn, Cm, ..., (7), If the file does not contain all of the character strings Cn, Cm, ..., (8), one sentence in the file contains the character strings Cn, Cm,...
Cm,... are not included, and other character strings Cx, C
If any of y,... is included, (9), If the case (8) above holds true for one sentence in the file, and the case (8) above holds true for the other sentences, (10 ), or (8) holds true for the sentences in the file (Claim 2).

【0007】更に本発明の検索装置は、文字列を含む複
数のファイルから特定の文字列を含むファイルを検索す
るファイル検索装置において、1ファイルの1文内での
検索要求か文間にまたがる検索要求かを示す区分コード
と複数の文字列の論理的組合せにより成る検索条件コー
ドとより成る検索条件を読み込む手段と、この検索条件
中の区分コードから1文か文間にまたがるかを解読する
手段と、この解読後に各ファイル毎に、解読結果に応じ
た1文毎又は文間毎に、上記検索条件コードに一致する
論理的組合せがあるか否かを検索し、一致するファイル
を見つけ出す手段と、より成る(請求項3)。
Furthermore, the search device of the present invention is a file search device that searches for a file containing a specific character string from a plurality of files containing character strings. A means for reading a search condition consisting of a category code indicating whether it is a request and a search condition code consisting of a logical combination of a plurality of character strings, and a means for decoding from the category code in the search condition whether it is a single sentence or spans between sentences. and, after this decoding, means for searching each file for each sentence or sentence interval depending on the decoding result to see if there is a logical combination that matches the search condition code, and finding a matching file. , (Claim 3).

【0008】[0008]

【作用】本発明によれば、1文間か文間にまたがるかを
示す区分コードと複数の文字列の理論的組合せより成る
検索条件コードとより成る検索条件を読み込ませて、該
当するファイルを検索する(請求項1、3)。更に本発
明によれば、論理的組合せは、詳細な組合せが可能にな
り、複雑な文字列のファイル検索を実現する(請求項2
)。
[Operation] According to the present invention, a search condition consisting of a classification code indicating whether it spans between one sentence or between sentences and a search condition code consisting of a theoretical combination of a plurality of character strings is read, and the corresponding file is searched. Search (Claims 1 and 3). Furthermore, according to the present invention, logical combinations enable detailed combinations and realize file searches for complex character strings (claim 2).
).

【0009】[0009]

【実施例】本発明で使用する検索条件は、区分コードと
検索条件コードとより成る。区分コードとは、1ファイ
ルの1文内での検索要求か文間にまたがる検索要求かを
示すコードである。ここで、1文とは、文字列の集まり
のなかで、1文章を云い、これは「。」(マル)印で区
分けされた単位である。即ち、「。」から次の「。」迄
の間に存在する文字列を指す。文間にまたがるとは、上
記1文を1単位として、複数文章にわたっての意である
。例えば、「症状は重い。しかし悪性の可能性は低い。 …」なるファイルがあった場合「症状は重い。」及び「
しかし、悪性の可能性は低い。」等が1文を意味する。 そして。「症状は重い。」と「しかし、悪性の可能性は
低い。」等とが文間にまたがるとの意となる。
[Embodiment] The search condition used in the present invention consists of a classification code and a search condition code. The classification code is a code indicating whether the search request is within one sentence of one file or between sentences. Here, one sentence refers to one sentence in a collection of character strings, and is a unit separated by a "." (circle) mark. In other words, it refers to the character string that exists between "." and the next ".". Spreading between sentences means spanning multiple sentences, with the above-mentioned one sentence as one unit. For example, if there is a file that says "Symptoms are severe, but the possibility of malignancy is low...", "Symptoms are severe" and "
However, the possibility of malignancy is low. ” etc. means one sentence. and. This means that ``The symptoms are severe.'' and ``However, the possibility of malignancy is low.'' are interspersed between sentences.

【0010】更に、検索条件コードとは、文字列の論理
的組合せを指す。論理的とは、論理積(オア)、論理和
(アンド)等の各種の論理関係を意味する。これらの論
理対象となる文字列は、検索目標となる文字列のことで
ある。操作者は、区分コードと検索条件コードとを、検
索目標に応じて作成する。この作成した検索条件をコン
ピュータ(プロセッサ)に読み込ませて、検索処理を行
わせる。
Furthermore, the search condition code refers to a logical combination of character strings. Logical means various logical relationships such as logical product (OR) and logical sum (AND). These character strings that are logical targets are character strings that are search targets. The operator creates classification codes and search condition codes according to search goals. The created search conditions are read into a computer (processor) and search processing is performed.

【0011】以下、具体例で説明する。しかし、各記号
はあくまで例示であり、他の記号法も当然ありうる。1
文中の検索のためのAND、ORをそれぞれ「*」、「
/」で表し、更に、文間にまたがるAND、ORを「&
」、「|」で表し、「()」で1文を表し、「!」は含
まないを意味するとする。この約束のもとに以下の如き
各種の検索条件を作成できる。 (1)、検索条件式…Cn*Cm 検索条件式の意味…1文に文字列Cn、とCmが含まれ
るファイルの検索。 (2)、検索条件式…Cn/Cm 検索条件式の意味…1文に文字列Cn、Cmのいずれか
が含まれるファイルの検索。 (3)、検索条件式…Cn*Cm/Cx/Cy検索条件
式の意味…1文に文字列Cn、Cmがすべて含まれ、且
つ、他の文字列Cx、Cyのいずれかが含まれるファイ
ルの検索。 (4)、検索条件式…(        )|(   
   )検索条件式の意味…1文に前記(1)、(2)
、(3)のいずれかの場合((  )のなか書く)が成
立し、他の文にも前記(1)、(2)、(3)のいずれ
かの場合が成立するファイルの検索。 (5)、検索条件式…Cn|Cm 検索条件式の意味…文字列Cn、Cmのいずれかが含ま
れるファイルの検索 (6)、検索条件式…!Cn*!Cm 検索条件式の意味…1文に文字列Cn、Cmがすべて含
まれないファイルの検索。 (7)、検索条件式…!Cn&!Cm 検索条件式の意味…文字列Cn、Cmのすべて含まれな
いファイルの検索。 (8)、検索条件式…!Cn*!Cm/Cx/Cy検索
条件式の意味…1文に文字列Cn、Cmがすべて含まれ
ず、且つ、他の文字列Cx、Cyのいずれかが含まれる
ファイルの検索。 (9)、検索条件式…!Cn*!Cm/Cx/Cy  
&  !Cp*Cq/Cz/Ca 検索条件式の意味…1文に前記(8)の場合が成立し、
他の文にも前記(8)の場合が成立するファイルの検索
。 (10)、探索条件式…!Cn*!Cm/Cx/Cy 
 |  !Cp*!Cq/Cz/Ca 検索条件式の意味…別の文に前記(8)が成立するファ
イルの検索。
[0011] A specific example will be explained below. However, each symbol is merely an example, and other symbology may of course be used. 1
AND and OR for searching within a sentence are "*" and ", respectively.
/", and furthermore, AND and OR spanning between sentences are represented by "&
” and “|”, “()” represents one sentence, and “!” means not included. Based on this promise, various search conditions such as the following can be created. (1) Search condition expression...Cn*Cm Meaning of search condition expression...Search for files in which one sentence contains the character strings Cn and Cm. (2) Search condition expression...Cn/Cm Meaning of search condition expression...Search for files in which one sentence contains either the character string Cn or Cm. (3) Search condition expression...Cn*Cm/Cx/Cy Meaning of search condition expression...A file in which one sentence contains all of the character strings Cn and Cm, and one of the other character strings Cx and Cy Search for. (4), Search condition expression...( ) | (
) The meaning of the search condition expression...The above (1) and (2) are included in one sentence.
, (3) (written in parentheses) holds true, and any of the above cases (1), (2), and (3) hold true for other sentences as well. (5), Search condition expression...Cn|Cm Meaning of search condition expression...Search for files containing either character string Cn or Cm (6), Search condition expression...! Cn*! Cm Meaning of search condition expression...Search for files that do not contain all of the character strings Cn and Cm in one sentence. (7), Search condition expression...! Cn&! Cm Meaning of search condition expression...Search for files that do not contain all of the character strings Cn and Cm. (8), Search condition expression...! Cn*! Meaning of Cm/Cx/Cy search condition expression: Search for files in which one sentence does not contain all of the character strings Cn and Cm, but contains any of the other character strings Cx and Cy. (9), Search condition expression...! Cn*! Cm/Cx/Cy
&! Cp*Cq/Cz/Ca Meaning of search condition expression...Case (8) above holds true for one sentence,
Search for files for which case (8) above also holds true for other sentences. (10), search condition expression...! Cn*! Cm/Cx/Cy
|! Cp*! Cq/Cz/Ca Meaning of search condition expression...Search for a file for which (8) above is satisfied in another sentence.

【0012】以上のような検索条件式を利用することに
よって複雑な文字列の意味を持つファイルの検索が可能
となる。例えば、「発明が解決しようとする課題」の欄
の如きファイル1、2、3の場合には、検索条件式は、
「高吸収*!ない*!無い/示す/見られ/みられ」と
すればよい。逆に、高吸収の無いファイルをさがすため
には、検索条件式を「高吸収*ない/無い」とすればよ
い。
[0012] By using the above search condition expressions, it is possible to search for files with complex character string meanings. For example, in the case of files 1, 2, and 3, such as those in the "Problem to be Solved by the Invention" column, the search condition expression is
"High absorption*! No*! No/show/seen/seen" may be used. Conversely, in order to search for files without high absorption, the search condition expression may be set to "high absorption*no/no".

【0013】図2は共通バス100でCPU101、メ
インメモリ102、磁気ディスク103、表示メモリ1
04、CRT108、コントローラ105、キーボード
107、プリンタ等の各種外部機器との接続をはかるイ
ンターフェース106とで構成された検索システム図を
示す。ディスク103には、各種のファイル1、2、3
…が格納されている。このファイルには、ワープロやワ
ープロソフトによって作成されたファイルである。作成
形式は、DOS形式やUNIX形式等種々の形態がある
FIG. 2 shows a common bus 100 that connects a CPU 101, a main memory 102, a magnetic disk 103, and a display memory 1.
04, a search system diagram comprising a CRT 108, a controller 105, a keyboard 107, and an interface 106 for connecting with various external devices such as a printer. Various files 1, 2, 3 are stored on the disk 103.
... is stored. This file is a file created by a word processor or word processing software. There are various creation formats such as DOS format and UNIX format.

【0014】更に、CPU101は、検索処理ソフトを
格納するメインメモリ102を利用して、キーボード1
07から入力した検索条件式を読み込み検索処理を実行
する。CRT108は、検索ファイル等の各種の表示を
行う。尚、キーボード以外の入力形式もありうる。
Furthermore, the CPU 101 uses the main memory 102 that stores search processing software to control the keyboard 1.
The search condition expression input from step 07 is read and the search process is executed. The CRT 108 displays various types of files such as search files. Note that input formats other than the keyboard are also possible.

【0015】次に図1を用い、処理手順を説明する。ス
テップ1で、前記例の「高吸収*ない/無い」などの検
索条件式を読み込む。ステップ2、3で、この検索条件
式がファイル中の1文に関するものか、或は、複数文間
にまたがるものかを区分コードを解読して判定する。前
者の場合、ステップ4に飛び最初のファイルを磁気ディ
スクから読み込む。ステップ5での最初の1文調べるた
めに、バッファに取り組む。ステップ6で検索コードを
満たすか異かを調べる。例えば前記例では、「高吸収」
、「無い」、「ない」があれば検索要求を満たすのでこ
のファイル名をメモリに記憶する(ステップ9)。 ステップ7で全ての文を調べたか否かの判定をして、フ
ァイル中の全ての文を調べる。1つのファイルを調べた
ら、次のファイルを読み込み、ステップ5〜7を繰り返
す。この処理を、例えば、ファイル名のエクステンショ
ン部にJXWのついたもの全てについて繰り返す。
Next, the processing procedure will be explained using FIG. In step 1, a search condition expression such as "high absorption*no/no" in the above example is read. In steps 2 and 3, the classification code is deciphered to determine whether the search condition expression relates to one sentence in the file or extends over multiple sentences. In the former case, jump to step 4 and read the first file from the magnetic disk. Work through the buffer to examine the first sentence in step 5. In step 6, it is checked whether the search code is satisfied or not. For example, in the above example, "high absorption"
, "No", and "No" satisfy the search request, so this file name is stored in the memory (step 9). In step 7, it is determined whether all sentences have been examined, and all sentences in the file are examined. After examining one file, load the next file and repeat steps 5-7. This process is repeated, for example, for all files with JXW in the extension part of the file name.

【0016】ステップ2、3で、前記検索指示がファイ
ル中の複数文間にまたがる場合はステップ10に飛び、
最初のファイルを読み込む。いま説明のために、検索条
件を「Cn  |  Cm」とする。文番号を表すパラ
メータXを1にする(ステップ11)。X番目の文をバ
ッファに取り込み、文字列CnまたはCmがあるか否か
を調べる。あればF(X)=1(Cnのとき)またはF
(X)=2(Cmのとき)とし(ステップ14A)、無
ければF(X)=0とする(ステップ14B)。ステッ
プ15で全ての文を調べたか否かの判定をして、調べて
なければXに1を加えてステップ12に戻りこの処理を
繰り返す。全ての文を調べたら、ステップ16で検索条
件を満たすか否かの判定をする。たとえば、「Cn  
|  Cm」の場合は、f(X)<>0をみたすXは1
個以上存在すれば良い。また、「Cn  &  Cm」
のときは、f(X1)=1をみたすX1が1個以上、f
(X2)=2を満たすX2が1個以上存在すればよい。 満たせば、ステップ20でファイル名をメモリに記録す
る。 ステップ10からステップ17までの処理を、例えば、
ファイル名のエクステンション部にJXWのついたもの
全てについて繰り返す。
[0016] In steps 2 and 3, if the search instruction extends between multiple sentences in the file, jump to step 10;
Load the first file. For the sake of explanation, let us assume that the search condition is "Cn | Cm". Parameter X representing the sentence number is set to 1 (step 11). Load the Xth sentence into the buffer and check whether the character string Cn or Cm exists. If so, F(X)=1 (when Cn) or F
(X)=2 (when Cm) is set (step 14A); otherwise, F(X)=0 is set (step 14B). In step 15, it is determined whether all sentences have been examined. If not, 1 is added to X and the process returns to step 12 to repeat this process. After examining all sentences, it is determined in step 16 whether the search conditions are satisfied. For example, “Cn
| Cm'', X that satisfies f(X)<>0 is 1
It is sufficient if there are at least one. Also, “Cn & Cm”
When , there is one or more X1 satisfying f(X1)=1, f
It suffices if there is one or more X2 that satisfies (X2)=2. If the conditions are satisfied, the file name is recorded in the memory in step 20. For example, the processing from step 10 to step 17 is
Repeat for all files with JXW in the extension part of the file name.

【0017】検索条件をみたすファイル名が分かれば、
ファイルに記録されている情報(例えば患者番号)をイ
ンターフェイス106を通して他の装置(例えばデータ
ベース)に送り、利用することができる。
[0017] Once you know the file name that satisfies the search conditions,
Information recorded in the file (eg, patient number) can be sent through interface 106 to other devices (eg, a database) for use.

【0018】以上の実施例では、区分コードを1文か文
間かとしたが、この区分は一例であり、文字列の長さで
区分する例や、項目別に区分する例もある。又、区分を
2つとしたが、3区分以上の区分の仕方もありうる。
In the above embodiment, the classification code is one sentence or between sentences, but this classification is just an example, and there are also examples of classification based on the length of character strings and examples of classification based on items. Also, although we have made two categories, it is also possible to have three or more categories.

【0019】[0019]

【発明の効果】本発明によれば、詳細な検索条件を指定
して該当するファイルを検索できる(請求項1〜3)。
According to the present invention, it is possible to specify detailed search conditions and search for a corresponding file (claims 1 to 3).

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

【図1】本発明の処理フローである。FIG. 1 is a processing flow of the present invention.

【図2】本発明の検索装置の実施例図である。FIG. 2 is an embodiment diagram of a search device of the present invention.

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

100  共通バス 101  CPU 103  磁気ディスク 107  キーボード 100 Common bus 101 CPU 103 Magnetic disk 107 Keyboard

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  文字列を含む複数のファイルから特定
の文字列を含むファイルを検索する方法において、1フ
ァイルの1文内での検索要求か文間にまたがる検索要求
かを示す区分コードと複数の文字列の論理的組合せより
成る検索条件コードより成る検索条件を読み込む処理と
、この検索条件中の区分コードから1文か文間にまたが
るかを解読する処理と、この処理後に各ファイル毎に、
解読結果に応じた1文毎又は文間毎に、上記検索条件コ
ードに一致する論理的組合せがあるか否かを検索し、一
致するファイルを見つけ出す処理と、より成るファイル
検索方法。
[Claim 1] In a method of searching for a file containing a specific character string from a plurality of files containing character strings, a classification code indicating whether a search request is made within one sentence of one file or a search request spanning between sentences; A process of reading a search condition consisting of a search condition code consisting of a logical combination of character strings, a process of decoding from the classification code in this search condition whether it is one sentence or spanning between sentences, and after this process, ,
A file search method comprising the steps of searching for a logical combination that matches the search condition code for each sentence or between sentences according to the decoding results, and finding a matching file.
【請求項2】  請求項1の論理的組合せには、複数の
文字列(C1、C2、…、Ci…)(以下Cn、Cmと
表記)した時、(1)、前記ファイル中の1文に文字列
Cn、Cm、…がすべて含まれる場合、(2)、前記フ
ァイル中の1文に文字列Cn、Cm、…のいずれかが含
まれる場合、(3)、前記ファイル中の1文に文字列C
n、Cm、…がすべて含まれ、かつ、他Cx、cy、…
の文字列のいずれかが含まれる場合、(4)、前記ファ
イル中の1文に前記(1)、(2)、(3)のいずれか
の場合が成立し、他の文にも前記(1)、(2)、(3
)のいずれかの場合が成立する場合、(5)、前記ファ
イル中に文字列Cn、Cm、…のいずれかが含まれる場
合、(6)、前記ファイル中の1文に文字列Cn、Cm
、…がすべて含まれない場合、(7)、前記ファイル中
に文字列Cn、Cm、…のすべて含まれない場合、(8
)、前記ファイル中の1文に文字列Cn、Cm、…がす
べて含まれず、且つ、他の文字列Cx、Cy、…のいず
れかが含まれる場合、(9)、前記ファイル中の1文に
前記(8)の場合が成立し、他の文にも前記(8)の場
合が成立する場合、(10)、前記ファイル中の文に前
記(8)が成立する場合、のいずれかとするファイル検
索方法。
[Claim 2] The logical combination of claim 1 includes (1) when a plurality of character strings (C1, C2,..., Ci...) (hereinafter referred to as Cn, Cm), one sentence in the file; contains all of the character strings Cn, Cm, ..., (2), if one sentence in the file contains any of the character strings Cn, Cm, ..., (3), one sentence in the file string C
n, Cm,... are all included, and other Cx, cy,...
If one of the character strings (4) is included, one of the cases (1), (2), and (3) above holds true for one sentence in the file, and the other sentences also contain the above ((4). 1), (2), (3
) holds true, (5), if the file contains any of the character strings Cn, Cm,..., (6), one sentence in the file contains the character strings Cn, Cm
,... are not included, (7), and if the file does not contain all of the character strings Cn, Cm,..., (8
), if one sentence in the file does not include all of the character strings Cn, Cm,... and includes any of the other character strings Cx, Cy,..., (9), one sentence in the file If the case (8) above holds true for , and the case (8) above holds true for other sentences, either (10), or if the case (8) holds true for the sentences in the file. File search method.
【請求項3】  文字列を含む複数のファイルから特定
の文字列を含む検索装置において、1ファイルの1文内
での検索要求か文間にまたがる検索要求かを示す区分コ
ードと複数の文字列の論理的組合せにより成る検索条件
コードとより成る検索条件を読み込む手段と、この検索
条件中の区分コードから1文か文間にまたがるかを解読
する手段と、この解読後に各ファイル毎に、解読結果に
応じた1文または文間毎に、上記検索条件コードに一致
する論理的組合せが有るか否かを検索し、一致するファ
イルを見つけ出す手段と、より成るファイル検索装置。
[Claim 3] In a search device containing a specific character string from a plurality of files containing character strings, a classification code indicating whether a search request is made within one sentence of one file or a search request spanning between sentences and a plurality of character strings are provided. means for reading search conditions consisting of a search condition code consisting of a logical combination of the following; means for decoding whether the classification code in the search conditions is one sentence or spanning between sentences; A file search device comprising means for searching for a logical combination matching the search condition code for each sentence or sentence interval according to the result, and finding a matching file.
JP3046115A 1991-02-19 1991-02-19 Method and device for retrieving file Pending JPH04264674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3046115A JPH04264674A (en) 1991-02-19 1991-02-19 Method and device for retrieving file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3046115A JPH04264674A (en) 1991-02-19 1991-02-19 Method and device for retrieving file

Publications (1)

Publication Number Publication Date
JPH04264674A true JPH04264674A (en) 1992-09-21

Family

ID=12738004

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3046115A Pending JPH04264674A (en) 1991-02-19 1991-02-19 Method and device for retrieving file

Country Status (1)

Country Link
JP (1) JPH04264674A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001195416A (en) * 2000-01-13 2001-07-19 Scripts Lab Inc Method and device for narrowing retrieval by plural keywords, and storage medium with narrowing retrieval program recorded therein

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001195416A (en) * 2000-01-13 2001-07-19 Scripts Lab Inc Method and device for narrowing retrieval by plural keywords, and storage medium with narrowing retrieval program recorded therein

Similar Documents

Publication Publication Date Title
US6523030B1 (en) Sort system for merging database entries
US5089985A (en) System and method for performing a sort operation in a relational database manager to pass results directly to a user without writing to disk
JP2008516347A (en) Saving and restoring the interlock tree data store
JPH0225536B2 (en)
JPS5892035A (en) Data base processing system
US6356888B1 (en) Utilize encoded vector indexes for distinct processing
JPS603652B2 (en) data processing equipment
US7020647B1 (en) Utilize encoded vector indexing for database grouping
JP2000357115A (en) Device and method for file retrieval
US20030225787A1 (en) System and method for storing and retrieving thesaurus data
JPH04264674A (en) Method and device for retrieving file
US20050108205A1 (en) Data access and retrieval mechanism
JP2806653B2 (en) File search device
JP3431618B2 (en) Data search device and search method
JPH0469769A (en) Data processor
JPS6129936A (en) Retrieval method
JPH03202934A (en) Data processor
JP3490532B2 (en) Hyper document search device
JPH02208750A (en) File access system
JPS60168234A (en) Information retrieving system
JPS63250739A (en) Filing device
JPH04250568A (en) Record retrieval device
JPH0926967A (en) Data base retrieval system
JPH0398167A (en) Adverse retrieving system for index forward compiling file
JPS60225938A (en) Information retrieving system