JPH11161666A - Method and device for document data retrieval and document editing device - Google Patents

Method and device for document data retrieval and document editing device

Info

Publication number
JPH11161666A
JPH11161666A JP9328915A JP32891597A JPH11161666A JP H11161666 A JPH11161666 A JP H11161666A JP 9328915 A JP9328915 A JP 9328915A JP 32891597 A JP32891597 A JP 32891597A JP H11161666 A JPH11161666 A JP H11161666A
Authority
JP
Japan
Prior art keywords
data
data file
key
document
file
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
JP9328915A
Other languages
Japanese (ja)
Inventor
Shinichiro Ie
伸一郎 家
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 Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP9328915A priority Critical patent/JPH11161666A/en
Publication of JPH11161666A publication Critical patent/JPH11161666A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the device which can generally retrieve a data file generated by a work processor, CAD, etc. SOLUTION: The document data retrieval device 1 consists of a retrieval condition input means 15 which stores an inputted key word, a key data file retrieval means 17 which extracts, reads, and stores a key data file from a data file storage device 2, a key word retrieval means 16 which reads and stores key data from a corresponding data file according to the data read in by the key data file retrieval means, inspects whether the data matches the retrieval key word and stores information on a data file having the matching key data in a buffer, and a display means 10 which displays the data held in the buffer of the key word retrieval means.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、記憶装置から目的
とするドキュメントのデータファイルを抽出するときに
用いられるドキュメントデータ検索方法およびその装
置、並びにドキュメント編集装置、データファイル生成
装置に関わる。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for retrieving a document data used for extracting a data file of a target document from a storage device, a document editing apparatus, and a data file generating apparatus.

【0002】[0002]

【従来の技術】ワードプロセッサやCAD等を利用して
作成されたドキュメントを再度、印刷あるいは表示する
ために必要となるデータファイルを記憶装置から抽出す
るときに、利用者がそのデータファイルにつけられたフ
ァイル名だけを手がかりにして目的とするファイルを見
つけ出すことは困難である。このような、目的とするデ
ータファイルを見つけ出す作業を支援する方法として、
特開昭61−198332号公報にて開示されるよう
な、データファイルの先頭部分にそのドキュメントの検
索に使用するキーワード等を記憶する文書ヘッダー情報
を追加し、この文書ヘッダー情報と、利用者が入力する
検索条件との比較を行うことにより、利用者が要求する
データファイルを検索する方式がある。
2. Description of the Related Art When extracting a data file necessary for printing or displaying a document created using a word processor, CAD or the like again from a storage device, a user attaches a file attached to the data file. It is difficult to find the desired file based on the name alone. As a method to help you find the target data file,
Document header information for storing a keyword or the like used for searching the document is added to the head of the data file, as disclosed in Japanese Patent Application Laid-Open No. 61-198332. There is a method of searching for a data file requested by a user by comparing the data file with an input search condition.

【0003】また、この方式以外にも、データファイル
を全てASCIIコードのような文字コードの形のデータ
(以下テキストデータと称す)の形式で保存し、このテ
キストデータと、目的とする検索条件とを比較すること
により、利用者が要求するデータファイルを検索する方
式も従来使用されている。
In addition to this method, all data files are stored in the form of data in the form of character codes such as ASCII codes (hereinafter, referred to as text data). Conventionally, a method of searching for a data file requested by a user by comparing.

【0004】[0004]

【発明が解決しようとする課題】上記の文書ヘッダー情
報による方式によれば、文書ヘッダー情報として、その
データファイルに関連するキーワードを予め登録し記憶
装置に保存すれば、データファイルを検索するときに比
較的容易に目的とするデータファイルを見つけることが
可能となる。しかしながら、データファイルのフォーマ
ットは通常ワードプロセッサやCADなどのツールに強
く依存しており、このことから、文書ヘッダー情報もツ
ールに依存したフォーマットとならざるを得ない。した
がって、目的とするドキュメントを作成したツールを特
定しないで、そのデータファイルを検索するためには、
ツール毎のデータファイルのフォーマットの情報をすべ
て把握する必要がある。それぞれのツールは、バージョ
ンアップなどによりデータファイルのフォーマットを変
更する可能性が有ることから、常時、全てのツールの全
ファイルフォーマットの情報を管理するためには多大な
労力を要することとなる。つまり、不特定のツールで作
成されたデータファイルを対象として、目的とするドキ
ュメントを検索することは困難である。
According to the method based on the document header information described above, if a keyword related to the data file is registered in advance as document header information and stored in a storage device, the data file can be searched for. It is possible to find a target data file relatively easily. However, the format of a data file usually depends heavily on tools such as a word processor and CAD, so that the document header information must be in a format dependent on the tool. Therefore, to search that data file without specifying the tool that created the desired document,
It is necessary to grasp all information on the format of the data file for each tool. Since each tool may change the format of the data file due to version upgrade or the like, a great deal of labor is required at all times to manage information on all file formats of all tools. That is, it is difficult to search for a target document using a data file created by an unspecified tool.

【0005】また、前記従来の第二の方式によれば、デ
ータファイルをすべてテキストデータとして保存するこ
とにより、ドキュメントを作成するツールに依存しない
で、目的とするデータファイルを検索することが可能と
なる。しかしながら、ドキュメントを作成するツールに
より作成されるデータファイルには、文字列のデータと
ともに、図形などのデータも含まれる。特にCAD等の
機械やソフトウエアの設計に関連して利用するものの場
合、図形などのデータの割合が大きくなる。通常、図形
などのデータは、その属性を示す数値データとして保持
されるが、これをテキストデータ(数字)としてファイ
ルに出力すると、データ量が元の数値データよりも多く
なるという欠点がある。また、データファイルを全てテ
キストデータとして、これを検索に用いた場合、検索条
件とはなり難い数字のデータまでもが検索対象となり、
検索時間が余計にかかるという問題があった。
Further, according to the second conventional method, by saving all data files as text data, it is possible to search for a target data file without depending on a tool for creating a document. Become. However, a data file created by a tool for creating a document includes data such as figures as well as character string data. In particular, in the case of CAD or the like used in connection with the design of a machine or software, the ratio of data such as graphics increases. Normally, data such as figures are held as numerical data indicating their attributes, but when this is output to a file as text data (numerals), there is a drawback that the data amount becomes larger than the original numerical data. In addition, if all data files are used as text data and this is used for search, even data with numbers that are unlikely to be search conditions will be searched,
There was a problem that extra search time was required.

【0006】本発明の目的は、上記の問題点を解決しド
キュメントを作成したツールに依存しないで、かつ、デ
ータファイルのデータ量の増加を最小限にし、利用者が
意図するキーワードだけを検索の対象とすることを可能
とするドキュメントデータの検索方法とそれに関わる装
置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to solve the above-mentioned problems and to minimize the increase in the amount of data in a data file without relying on a tool for creating a document. It is an object of the present invention to provide a document data search method that can be targeted and a device related thereto.

【0007】[0007]

【課題を解決するための手段】上記の目的は、ドキュメ
ントのデータファイルを記憶装置に出力するときに、既
出力のデータのサイズを計数し記憶するデータサイズ測
定手段と、データファイルとは異なる別のファイルに前
記データサイズ測定手段が保持する既出力のデータサイ
ズのデータと、キーワードの文字列の位置のデータを出
力するキーデータファイル出力手段とを設け、そのドキ
ュメントのキーワードとなるデータをデータファイル記
憶装置に出力するときに、前記キーデータファイル出力
手段がそのキーワードのデータファイル内部での位置と
大きさをキーワードファイルに出力する処理を行う構成
としたことによって達成される。
The object of the present invention is to provide a data size measuring means for counting and storing the size of already output data when outputting a document data file to a storage device. And a key data file output means for outputting the data of the output data size held by the data size measurement means and the data of the position of the character string of the keyword in the file. This is achieved by a configuration in which the key data file output means performs processing for outputting the position and size of the keyword in the data file to the keyword file when outputting to the storage device.

【0008】また、上記の目的は、ドキュメントを表示
する表示手段と、利用者によりドキュメントに対する操
作入力を読込むデータ入力手段と、該データ入力手段を
介して入力される情報に応じて、ドキュメントのデータ
を処理し、その結果を表示手段に表示するドキュメント
編集手段とを設け、該ドキュメント編集手段が、ドキュ
メントの中の文字列のデータについて、それがキーワー
ドかそうでないかを識別する情報を保持し、キーワード
か否かにより表示装置上で区別可能とする機能を有する
構成としたことによって達成される。
[0008] Further, the above object is to provide a display means for displaying a document, a data input means for reading an operation input to the document by a user, and a function of displaying the document in accordance with information inputted through the data input means. Document editing means for processing data and displaying the result on a display means, wherein the document editing means holds information for identifying whether a character string data in a document is a keyword or not. This is achieved by a configuration having a function of making it possible to distinguish on the display device depending on whether the keyword is a keyword or not.

【0009】さらに、上記の目的は、データファイル毎
のキーデータファイルのデータを利用者が指定する記憶
装置の領域について逐次読込み格納されるキーデータフ
ァイル読込みバッファと、キーデータファイル読込みバ
ッファの情報に応じてキーデータファイルからキーワー
ドを抽出した情報が格納されるキーデータ読込みバッフ
ァとを設け、前記入力手段を介して入力される検索キー
ワードに応じて、前記キーデータ読込みバッファ内のキ
ーワードとの比較を行い、一致するキーデータがあれ
ば、その一致するキーデータを有するデータファイルに
関する情報を一時記憶バッファにスタックし、利用者が
指定する記憶装置の領域に対する検索を終え検索結果を
表示装置に表示する構成としたことによって達成され
る。
Further, the above object is to provide a key data file read buffer for sequentially reading and storing data of a key data file for each data file in an area of a storage device designated by a user, and information of a key data file read buffer. A key data reading buffer in which information obtained by extracting a keyword from a key data file is stored, and a comparison with a keyword in the key data reading buffer is performed in accordance with a search keyword input via the input means. If there is matching key data, information on the data file having the matching key data is stacked in the temporary storage buffer, and the search for the storage device area specified by the user is completed, and the search result is displayed on the display device. This is achieved by having a configuration.

【0010】さらに、上記のの目的は、ドキュメントの
データを保持するデータファイルを読込み、予め定めら
れた文字列の系列(キーワード識別記号)を検索し、そ
の文字列のデータのデータファイル中の相対位置を測定
し記憶するキーワード判定処理手段と、データファイル
に応じたファイル名称を有するファイルに、前記キーワ
ード判定処理手段に記憶する相対位置の情報を出力する
キーデータファイル出力処理手段とを設け、ドキュメン
ト中のキーワードとなる文字列に対して前記のキーワー
ド識別記号を附したデータファイルを読込み、該ファイ
ル中のキーワードの位置に応じてキーワードファイルを
生成する処理を行う構成としたことによって達成され
る。
Further, the object of the present invention is to read a data file holding document data, search for a predetermined character string sequence (keyword identification symbol), and search for a relative character string data in the data file. A keyword determination processing means for measuring and storing the position; and a key data file output processing means for outputting information of a relative position stored in the keyword determination processing means to a file having a file name corresponding to the data file, and This is achieved by reading a data file with the keyword identification symbol attached to a character string serving as a keyword in the file, and generating a keyword file in accordance with the position of the keyword in the file.

【0011】以上の構成手段を用いることにより、ドキ
ュメントのデータファイルのフォーマットに依存しない
で、かつ、新規に追加するキーデータファイルのサイズ
を小さくした上で、ドキュメントを作成したツールによ
らず目的とするドキュメントのデータファイルを見出す
ことが可能となる。
[0011] By using the above configuration means, the size of the key data file to be newly added can be reduced independently of the format of the data file of the document. It is possible to find the data file of the document to be executed.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態を図面
を用いて詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0013】図1は本発明の一実施形態を示すブロック
図である。本実施形態は、ドキュメントデータ検索装置
を組み込んだドキュメント編集装置1を示し、利用者に
より編集されたドキュメントのデータをデータファイル
記憶装置2に保存する毎に、同時にデータファイル中の
キーワードデータの位置の情報をもつキーデータファイ
ルを生成し、データファイル記憶装置2に出力する編集
機能と、および、利用者により設定される検索キーワー
ドなどの検索条件をもとに、目的とするデータファイル
をデータファイル記憶装置2から検索する機能を有する
ものである。
FIG. 1 is a block diagram showing an embodiment of the present invention. The present embodiment shows a document editing apparatus 1 in which a document data search apparatus is incorporated. Each time data of a document edited by a user is stored in a data file storage device 2, the position of keyword data in a data file is simultaneously determined. An editing function for generating a key data file having information and outputting the generated key data file to the data file storage device 2, and storing a target data file on the basis of a search condition such as a search keyword set by a user. It has a function of searching from the device 2.

【0014】図1において、表示手段10は、検索結果
および、編集対象のドキュメントを表示する。データ入
力手段11は、キーボードやマウスにより構成されるデ
ータ入力手段であり、このデータ入力手段11を介して
データファイルの検索キーワードと検索条件の設定入
力、および、編集対象のドキュメントに対する操作入力
が行われる。
In FIG. 1, a display means 10 displays a search result and a document to be edited. The data input means 11 is a data input means constituted by a keyboard and a mouse. Through the data input means 11, input of setting of a search keyword and a search condition of a data file and operation input for a document to be edited are performed. Will be

【0015】ドキュメント編集手段12は、編集対象の
ドキュメントのデータを一時的に記憶し、データ入力手
段11を介して利用者が入力するデータに応じてドキュ
メントの図形の配置やその属性の設定などの編集処理を
行うとともに、ドキュメントデータに応じてそのドキュ
メントの内容を表示装置10に表示する機能を有する。
また、このドキュメント編集手段12は、ドキュメント
中の文字列の一部に対して、データ入力手段11を介し
て入力されたデータに基づき、キーワードとしての属性
設定を行うものである。また、ドキュメントデータ中の
キーワード属性が設定された文字列を表示装置10に表
示するときに、他のキーワード属性が設定されていない
文字列と区別できるよう強調表示する機能も有する。な
おドキュメント編集手段12のその他の一般的な編集処
理機能は本発明とは直接関係しないため説明を省略す
る。
The document editing means 12 temporarily stores the data of the document to be edited, and arranges the figure of the document and sets its attributes according to the data input by the user via the data input means 11. It has a function of performing editing processing and displaying the contents of the document on the display device 10 according to the document data.
Further, the document editing unit 12 sets an attribute as a keyword for a part of a character string in the document based on the data input through the data input unit 11. Further, when displaying a character string in the document data to which a keyword attribute is set, the display device 10 has a function of highlighting the character string so that it can be distinguished from a character string in which no other keyword attribute is set. Note that other general editing processing functions of the document editing unit 12 are not directly related to the present invention, and thus description thereof is omitted.

【0016】データサイズ測定手段13は、ドキュメン
ト編集手段12から入力されたドキュメントのデータを
解析し、逐次そのデータサイズを計数、記憶するもので
ある。また入力されたドキュメントのデータを、本実施
形態の編集装置1に接続するデータファイル記憶装置2
に、データファイルとして出力する。また、ドキュメン
ト編集手段からキーワードであるデータの入力を受けた
ときに、データサイズの累計値、すなわち、データファ
イルにおけるキーワードデータへのポインタと、および
キーワードデータのデータサイズを、キーデータファイ
ル出力手段14に渡す。
The data size measuring means 13 analyzes the data of the document input from the document editing means 12, and sequentially counts and stores the data size. The data of the input document is stored in a data file storage device 2 connected to the editing device 1 of the present embodiment.
And output it as a data file. Further, when receiving data as a keyword from the document editing means, the cumulative value of the data size, that is, the pointer to the keyword data in the data file, and the data size of the keyword data are stored in the key data file output means 14. Pass to.

【0017】キーデータファイル出力手段14は、上記
データサイズ測定手段13から入力された、キーワード
のポインタとデータサイズをデータファイル記憶装置2
にデータファイル毎に作成するキーデータファイルに出
力する。
The key data file output means 14 stores the keyword pointer and the data size inputted from the data size measuring means 13 in the data file storage device 2.
Output to the key data file created for each data file.

【0018】ここで、本実施形態のドキュメント編集装
置1は、ドキュメントのデータファイルのファイル名の
拡張子として「DOC」、キーデータファイルの拡張子
として「IND」を用いる。
Here, the document editing apparatus 1 of this embodiment uses "DOC" as an extension of a file name of a data file of a document and "IND" as an extension of a key data file.

【0019】検索条件入出力処理手段15は、データ入
力手段11を介して入力された検索キーワードや検索条
件を解析し記憶するもので、その結果はキーワード検索
手段16とキーデータファイル検索手段17に渡され
る。また、検索条件入出力手段15は、キーワード検索
手段16からの検索結果の入力に応じて、検索結果を表
示手段10に表示する。
The search condition input / output processing means 15 analyzes and stores the search keywords and search conditions input via the data input means 11, and the results are sent to the keyword search means 16 and the key data file search means 17. Passed. The search condition input / output unit 15 displays the search result on the display unit 10 in response to the input of the search result from the keyword search unit 16.

【0020】キーワード検索手段16は、キーデータフ
ァイルから読込んだ、検索対象データファイル中のキー
ワードデータの位置とサイズの情報を一時的に記憶する
キーデータバッファと、ファイル毎に抽出されるキーワ
ードのリストを一時的に記憶するキーワードバッファ
と、検索結果の情報を記憶する結果バッファを使用して
検索を実行する。すなわち、キーデータファイル検索手
段17から入力されるキーデータファイルの情報によ
り、キーデータファイルをキーデータバッファに読込
み、このデータをもとにドキュメントのデータファイル
からキーワードを抽出しキーワードバッファに記憶す
る。また、このキーワードと検索条件入出力手段15か
ら入力される検索キーワードとを比較し、検索条件に一
致するキーワードのデータファイルの情報を結果バッフ
ァに記憶する。
The keyword search means 16 includes a key data buffer for temporarily storing information on the position and size of the keyword data in the search target data file read from the key data file, and a key word buffer extracted from each file. A search is performed using a keyword buffer for temporarily storing a list and a result buffer for storing information on search results. That is, the key data file is read into the key data buffer based on the key data file information input from the key data file search means 17, and keywords are extracted from the document data file based on the data and stored in the keyword buffer. Further, the keyword is compared with the search keyword input from the search condition input / output unit 15, and information of the data file of the keyword that matches the search condition is stored in the result buffer.

【0021】キーデータファイル検索手段17は、検索
条件入出力手段15から入力される検索対象記憶装置の
データに従い、ファイル名の拡張子が「IND」である
ファイルを検索し、見つかったキーデータファイルをキ
ーワード検索手段16に渡す。
The key data file search means 17 searches for a file whose file name extension is "IND" in accordance with the data of the search target storage device input from the search condition input / output means 15, and finds the found key data file. To the keyword search means 16.

【0022】図2は、本実施形態のドキュメント編集装
置1が、データファイル記憶装置2に対して出力するデ
ータファイルおよびキーデータファイルの構造を概念的
に示すものである。図3〜図5は、本実施形態の動作を
わかりやすく説明するために利用した図であり、表示手
段10に表示する画面図である。図6、図7は、本実施
形態の動作を示すフローチャートである。
FIG. 2 conceptually shows the structure of a data file and a key data file output from the document editing apparatus 1 of the present embodiment to the data file storage device 2. FIGS. 3 to 5 are diagrams used to explain the operation of the present embodiment in an easy-to-understand manner, and are screen diagrams displayed on the display unit 10. 6 and 7 are flowcharts showing the operation of the present embodiment.

【0023】以下、本発明の実施形態の動作につき詳細
に説明する。本発明による特有の動作は、大まかに言っ
てドキュメントデータに対応するキーデータファイルを
保存するキーデータ保存動作と、保存されたドキュメン
トデータを検索するデータファイル検索動作の二つに大
別される。
Hereinafter, the operation of the embodiment of the present invention will be described in detail. The specific operation according to the present invention is roughly classified into a key data storage operation for storing a key data file corresponding to document data and a data file search operation for searching the stored document data.

【0024】まず、キーデータ保存動作について図6を
用いて説明する。キーデータ保存動作は、ドキュメント
編集装置1のドキュメントデータの保存動作に同期して
起動される。ステップ101では、データサイズ測定手
段13が保持する積算データ量のデータをゼロにセット
する。次に、ステップ102で、ドキュメント編集手段
12から出力されるドキュメントのデータファイルの名
称データを読込む。ステップ103では、ステップ10
2で読込んだデータをもとに、データファイル記憶装置
2のデータファイルを開く。ステップ104では、ドキ
ュメント編集手段12から出力されるドキュメントのデ
ータを一つ読込む。
First, the key data saving operation will be described with reference to FIG. The key data saving operation is started in synchronization with the document editing device 1 saving document data operation. In step 101, the data of the integrated data amount held by the data size measuring means 13 is set to zero. Next, in step 102, the name data of the data file of the document output from the document editing means 12 is read. In step 103, step 10
The data file in the data file storage device 2 is opened based on the data read in step 2. In step 104, one piece of document data output from the document editing means 12 is read.

【0025】ステップ105では、ステップ104また
はステップ110で読込んだデータのサイズ、すなわ
ち、データのバイト数を評価する。データのサイズは、
データの属性(整数、実数、文字列など)に対応した一
定の値となることを利用し評価する。
In step 105, the size of the data read in step 104 or step 110, that is, the number of bytes of data is evaluated. The size of the data is
Evaluate using a constant value corresponding to data attributes (integer, real number, character string, etc.).

【0026】ステップ106では、ステップ105で評
価したデータがキーワードであるかどうかを評価する。
これは、すなわち、ドキュメント編集手段12でドキュ
メントを編集するときに、ドキュメント中の文字列のデ
ータに関連付けて保持する、それがキーワードであるか
否かを示す属性値により判定を行う。このときの、利用
者によりキーワードとする文字列のキーワード属性設定
時に表示する画面の実施例を図3に示す。図3で画面の
実施例では、文字列「キーワード2」に対してキーワー
ド属性を設定しようとしている。また、この図で文字列
「キーワード3」は、既にキーワード属性が設定済みで
あり、このことを示すために、他の文字列とは区別でき
るようアンダーラインを付して表示している。
In step 106, it is evaluated whether the data evaluated in step 105 is a keyword.
That is, when the document is edited by the document editing unit 12, the determination is made based on the attribute value indicating whether or not it is a keyword, which is held in association with the character string data in the document. FIG. 3 shows an example of a screen displayed when the user sets a keyword attribute of a character string as a keyword at this time. In the example of the screen shown in FIG. 3, a keyword attribute is to be set for the character string "keyword 2". In this figure, the character string "keyword 3" has a keyword attribute already set, and in order to indicate this, it is displayed with an underline so that it can be distinguished from other character strings.

【0027】ステップ107では、ステップ106で評
価したデータがキーワードであった場合に、積算のデー
タ量の値、およびステップ104で評価したデータのサ
イズをキーデータファイル出力手段14に出力する。
In step 107, when the data evaluated in step 106 is a keyword, the value of the integrated data amount and the size of the data evaluated in step 104 are output to the key data file output means 14.

【0028】ステップ109では、積算データ量の値を
更新する。すなわち、積算データ量の値に、ステップ1
05で評価したデータサイズの値を加え、この値を新た
に積算データ量とする。
In step 109, the value of the integrated data amount is updated. That is, the value of the integrated data amount is added to step 1
The value of the data size evaluated in 05 is added, and this value is newly set as the integrated data amount.

【0029】ステップ110では、ドキュメント編集手
段12が出力する次のデータを読込む。このとき、次の
データが有れば、次にステップ105に戻り。データが
なければステップ112に進み、データファイルを閉じ
る。
In step 110, the next data output by the document editing means 12 is read. At this time, if there is the next data, the process returns to step 105. If there is no data, the process proceeds to step 112, and the data file is closed.

【0030】また、このときキーデータファイル出力手
段14は、データサイズ測定手段13から出力されるキ
ーワードのデータまでの積算データ量と、キーワードの
サイズのデータを読込み、キーデータファイルを、デー
タファイル記憶装置2の処理の対象とするデータファイ
ルと同一のディレクトリに書き込む。また、このときデ
ータファイルの名称の拡張子として使用する文字列(本
実施例では「DOC」)をキーデータファイルの先頭部
分に書き込む。さらに、このときのキーデータファイル
の名称をデータファイルの名称と同じで拡張子の部分を
「IND」として保存する。
At this time, the key data file output means 14 reads the integrated data amount up to the keyword data outputted from the data size measuring means 13 and the data of the keyword size, and stores the key data file in the data file. The data is written in the same directory as the data file to be processed by the device 2. At this time, a character string (“DOC” in this embodiment) used as an extension of the name of the data file is written at the head of the key data file. Further, the name of the key data file at this time is the same as the name of the data file, and the extension part is stored as “IND”.

【0031】以上の処理により、ドキュメントのデータ
ファイル毎のキーデータファイルを生成する。
With the above processing, a key data file for each document data file is generated.

【0032】つぎに、データファイル検索動作について
説明する。データファイル検索動作が起動されることに
より検索条件入出力手段15は、検索キーワードと検索
条件の入力を利用者に促すための画面を表示手段10に
表示する。この表示画面は図4に示すような形式となっ
ており、利用者はこの画面に従い、目的とするキーワー
ドおよび検索対象とする記憶装置をデータ入力手段11
を介して入力する。入力されたデータは、検索条件入出
力手段15により解析され、検索キーワードと検索対象
記憶装置のデータをそれぞれ記憶するとともに、キーワ
ード検索手段16、および、キーデータファイル検索手
段17にそれぞれのデータを渡す。
Next, the data file search operation will be described. When the data file search operation is started, the search condition input / output unit 15 displays a screen for prompting the user to input a search keyword and a search condition on the display unit 10. The display screen has a format as shown in FIG. 4, and the user follows this screen and specifies a target keyword and a storage device to be searched for in the data input means 11.
To enter through. The input data is analyzed by the search condition input / output unit 15 to store the search keyword and the data of the search target storage device, respectively, and to pass the respective data to the keyword search unit 16 and the key data file search unit 17. .

【0033】検索条件の入力処理が終わると、キーデー
タファイル検索手段17が検索条件入出力手段15から
入力される検索対象記憶装置のデータにより、検索対象
の記憶装置で、ファイル名の拡張子が「IND」である
ファイルを検索し、その結果、すなわち、ファイル名と
ファイルが保存されるディレクトリ名をキーワード検索
手段16に渡す。キーワード検索手段16は、検索条件
入出力手段15から入力される検索キーワードと、キー
データファイル検索手段17から入力される検索対象キ
ーデータファイルのデータをもとに、検索キーワードと
それぞれのデータファイルが持つキーワードとを比較
し、一致するキーワードを持つデータファイルの情報を
結果バッファにスタックする。検索が終了すると、結果
バッファの情報を表示手段10に表示する。この表示画
面の実施例を図5に示す。キーワード検索手段16によ
る検索処理は、図7に示すフローチャートに基づき行わ
れる。
When the search condition input processing is completed, the key data file search means 17 uses the data of the search target storage device input from the search condition input / output means 15 to change the file name extension in the search target storage device. The file “IND” is searched, and the result, that is, the file name and the directory name where the file is stored are passed to the keyword search unit 16. The keyword search means 16 determines the search keyword and each data file based on the search keyword input from the search condition input / output means 15 and the data of the search target key data file input from the key data file search means 17. Compares the keyword with the data file and stacks the information of the data file with the matching keyword in the result buffer. When the search is completed, the information of the result buffer is displayed on the display means 10. FIG. 5 shows an example of this display screen. The search processing by the keyword search means 16 is performed based on the flowchart shown in FIG.

【0034】図7のフローチャートに基づき検索処理の
詳細について説明する。まず、ステップ201では、キ
ーデータファイル検索手段17からの検索対象キーデー
タファイルと、検索条件入出力手段15からの検索キー
ワードの情報を読み込み記憶する。次に、ステップ20
2では、まだ検索処理を行っていないキーデータファイ
ルが有るかどうかを評価し、有ればステップ203に進
む。なければステップ215に進み結果バッファのデー
タを検索結果表示画面に表示し、検索処理を終了する。
図5は、このとき表示手段10に表示する画面の実施例
を示す。
The details of the search process will be described with reference to the flowchart of FIG. First, in step 201, the key data file to be searched from the key data file search means 17 and the information of the search keyword from the search condition input / output means 15 are read and stored. Next, step 20
In step 2, it is evaluated whether there is a key data file that has not been searched yet. If not, the flow advances to step 215 to display the data in the result buffer on the search result display screen, and ends the search processing.
FIG. 5 shows an embodiment of a screen displayed on the display means 10 at this time.

【0035】ステップ203では、検索の対象とするキ
ーデータファイルを更新する。ステップ204では、検
索の対象とするキーデータファイルを開き、キーデータ
バッファに読込む。次にステップ205では、キーデー
タファイルの情報に基づきデータファイルを開く。すな
わち、キーデータファイルのファイル名の拡張子の部分
を、キーデータファイルの情報に基づき変更し、そのフ
ァイル名のファイルを開く。
In step 203, the key data file to be searched is updated. In step 204, the key data file to be searched is opened and read into the key data buffer. Next, in step 205, the data file is opened based on the information of the key data file. That is, the extension part of the file name of the key data file is changed based on the information of the key data file, and the file having the file name is opened.

【0036】ステップ206では、キーデータバッファ
に未処理のデータ、すなわち、対応するキーワードの文
字列をデータファイルから読込んでいないデータが有る
かどうかを評価し、データが有れば次にステップ207
に進む。なければ次にステップ210に進む。
In step 206, it is evaluated whether or not there is unprocessed data in the key data buffer, that is, data in which the character string of the corresponding keyword has not been read from the data file.
Proceed to. If not, the process proceeds to step 210.

【0037】ステップ207では、データファイルをデ
ータバッファのデータにしたがい読み飛ばす。そして、
ステップ208でデータバッファのデータに応じたサイ
ズの文字列のテキストデータを読込みキーワードバッフ
ァにスタックする。ステップ209では、キーデータバ
ッファの処理対象データを次のデータに置き換える。キ
ーデータバッファの全てのデータについて処理を完了す
るまでステップ207〜209を繰り返す。
In step 207, the data file is skipped according to the data in the data buffer. And
In step 208, text data of a character string having a size corresponding to the data in the data buffer is read and stacked in the keyword buffer. In step 209, the data to be processed in the key data buffer is replaced with the next data. Steps 207 to 209 are repeated until the processing is completed for all data in the key data buffer.

【0038】ステップ210では、キーワードバッファ
に記憶するデータファイルのキーワードと検索対象のキ
ーワードを比較する。そして、ステップ211で検索キ
ーワードが含まれるかどうかを判定し、キーワードが含
まれる場合には、ステップ212でキーワードバッファ
のデータと、処理対象のデータファイルの情報を結果バ
ッファにスタックする。
In step 210, the keyword of the data file stored in the keyword buffer is compared with the keyword to be searched. Then, it is determined in step 211 whether or not the search keyword is included. If the keyword is included, the data in the keyword buffer and the information on the data file to be processed are stacked in the result buffer in step 212.

【0039】ステップ213では、処理対象のデータフ
ァイルを閉じ、ステップ214では、キーワードバッフ
ァのデータをすべて削除する。
In step 213, the data file to be processed is closed. In step 214, all data in the keyword buffer is deleted.

【0040】以上のステップ202〜214の処理を、
ステップ201で読込んだ全てのキーデータファイルに
ついて実行する。
The processing of steps 202 to 214 is
The process is executed for all key data files read in step 201.

【0041】なお、以上の実施形態では、検索の結果抽
出されたデータファイルを、編集装置で開き編集処理を
行うところまでは述べていないが、データファイルのフ
ァイル名の拡張子の情報から、そのデータファイルを作
成した編集装置の種類を判別し、その編集装置にデータ
ーファイルを送ることにより、容易に編集を行うことが
可能である。
In the above embodiment, the data file extracted as a result of the search is not described up to the point where the data is opened by the editing device and the editing process is performed. By determining the type of the editing device that created the data file and sending the data file to the editing device, editing can be performed easily.

【0042】また、利用者がドキュメント内でキーワー
ドとして登録する文字列を指定可能な構成としたが、ド
キュメント中の全ての文字列をキーワードとして登録す
ることも可能である。更に、ドキュメントを表示する上
での文字の大きさや、フォントなどの文字の属性によ
り、キーワードとして登録するか否かの判断を自動的に
行うことも可能である。
Although the user can designate a character string to be registered as a keyword in the document, all character strings in the document can be registered as keywords. Further, it is also possible to automatically determine whether or not to register as a keyword, based on the size of characters in displaying a document and the attributes of characters such as fonts.

【0043】次に本発明の第二の実施形態について、図
面を使用して詳細に説明する。第二の実施形態は、任意
のドキュメントの編集ツールで作成されたデータファイ
ルを入力し、本発明のドキュメントデータ検索装置にて
使用するキーデータファイルを出力する機能を有するキ
ーデータファイル生成装置である。
Next, a second embodiment of the present invention will be described in detail with reference to the drawings. The second embodiment is a key data file generation device having a function of inputting a data file created by an arbitrary document editing tool and outputting a key data file used in the document data search device of the present invention. .

【0044】図8は、この実施形態を示すブロック図で
ある。図において、3はキーデータファイル生成装置
で、ドキュメントのデータファイル、および、キーデー
タファイルを記憶するデータファイル記憶装置2に接続
する。データ入力手段25は、キーボードとマウスで構
成され、これを介して処理の対象とするデータファイル
のファイル名の入力が行われる。キーワード区切り記号
記憶手段26は、予め定められた、ドキュメントのデー
タファイルの中で、キーワードを識別するための区切り
記号を記憶する。本実施形態では、データファイル中で
のキーワードの開始を意味する区切り記号として、文字
列のデータ「[[」を、また、キーワードの終わりを意味
する区切り記号として「]]」を使用する。キーワード区
切り記号記憶手段26に記憶するデータは、外部の記憶
装置から読込んだり、データ入力手段25を介して利用
者が入力することも可能である。また、キーワード区切
り記号は、単一の記号の系列のみではなく、複数のもの
を使用することが可能である。
FIG. 8 is a block diagram showing this embodiment. In the figure, reference numeral 3 denotes a key data file generation device, which is connected to a data file of a document and a data file storage device 2 for storing the key data file. The data input means 25 includes a keyboard and a mouse, through which a file name of a data file to be processed is input. The keyword delimiter storage unit 26 stores a predetermined delimiter for identifying a keyword in a document data file. In the present embodiment, character string data "[[" is used as a delimiter indicating the start of a keyword in a data file, and "]]" is used as a delimiter indicating the end of a keyword. The data stored in the keyword delimiter storage unit 26 can be read from an external storage device, or can be input by the user via the data input unit 25. In addition, a plurality of keyword delimiters can be used instead of only a single symbol sequence.

【0045】データファイル名入力処理部21は、デー
タ入力手段25を介して入力された処理対象データファ
イル名を解析するもので、その結果は、データファイル
名バッファ27に記憶される。データファイル読込み処
理部22は、データファイル名バッファ27に記憶する
名前のファイルを、データファイル記憶装置2から読み
込み、読込んだデータをデータバッファ28に書き込
む。
The data file name input processing section 21 analyzes the data file name to be processed inputted through the data input means 25, and the result is stored in the data file name buffer 27. The data file read processing unit 22 reads a file having the name stored in the data file name buffer 27 from the data file storage device 2 and writes the read data to the data buffer 28.

【0046】キーワード判定処理部23は、データバッ
ファ28に記憶するデータのデータサイズを計数し、デ
ータの先頭からの積算データ量を積算データ量バッファ
29に逐次書き込む。また、キーワード判定処理部23
は、キーワード区切り記号記憶手段26に記憶するデー
タをもとにデータバッファ28から入力するデータか
ら、キーワードとなるデータを抽出し、そのキーワード
のデータのデータサイズをキーワードデータサイズバッ
ファ30に書き込む。また、このとき同時に、キーデー
タファイル出力処理部24によりデータファイル記憶装
置2のキーデータファイルへの書き込み処理を行う。
The keyword determination processing section 23 counts the data size of the data stored in the data buffer 28 and sequentially writes the integrated data amount from the head of the data to the integrated data amount buffer 29. Also, the keyword determination processing unit 23
Extracts the data to be a keyword from the data input from the data buffer 28 based on the data stored in the keyword delimiter storage means 26 and writes the data size of the keyword data to the keyword data size buffer 30. At the same time, the key data file output processing unit 24 performs a writing process to the key data file in the data file storage device 2.

【0047】キーデータファイル出力処理部24は、デ
ータファイル名バッファ27に記憶するファイル名のデ
ータを読込み、そのファイル名の拡張子を予め定めるキ
ーデータファイルの拡張子に置き換えたファイル名のキ
ーデータファイルを、データファイル記憶装置2に作成
する。本実施形態では、キーデータファイルの拡張子を
「IND」とする。また、キーデータファイル出力処理
部24は、キーワード判定処理部23からの指令によ
り、キーワードデータサイズバッファ30に新たなデー
タが書込まれたときに、積算データ量バッファ29とキ
ーワードデータサイズバッファ30のデータを、キーデ
ータファイルに書き込む処理を行う。
The key data file output processing section 24 reads the file name data stored in the data file name buffer 27 and replaces the file name extension with a predetermined key data file extension. A file is created in the data file storage device 2. In the present embodiment, the extension of the key data file is “IND”. Also, when new data is written to the keyword data size buffer 30 in response to a command from the keyword determination processing unit 23, the key data file output processing unit 24 A process of writing data to a key data file is performed.

【0048】図9は、本実施形態で処理対象として扱う
データファイルとキーデータファイルの構造を概念的に
示した図である。図10は、本発明の第二の実施形態の
動作を示すフローチャートである。
FIG. 9 is a diagram conceptually showing the structures of a data file and a key data file handled as processing targets in the present embodiment. FIG. 10 is a flowchart showing the operation of the second embodiment of the present invention.

【0049】以下、本発明の第二の実施形態の動作につ
き図10のフローチャートを用い詳細に説明する。始め
にキーデータファイル生成装置3が起動し、利用者がデ
ータ入力手段25を介して処理対象のデータファイル名
を入力すると、データファイル名入力処理部21が、処
理対象データファイル名をデータファイル名バッファ2
7に書き込み、データファイル読込み処理部22に制御
を渡す(ステップ301)。
Hereinafter, the operation of the second embodiment of the present invention will be described in detail with reference to the flowchart of FIG. First, the key data file generating device 3 is activated, and when the user inputs a data file name to be processed via the data input means 25, the data file name input processing section 21 sets the data file name to be processed to the data file name. Buffer 2
7 and passes control to the data file read processing unit 22 (step 301).

【0050】データファイル読込み処理部22は、積算
データ量バッファの値を0にセットし(ステップ30
2)、データファイル名バッファ27のデータにしたが
い、データファイル記憶装置2のデータファイルを開
き、読込んだデータをデータバッファ28に書き込む
(ステップ303)。
The data file reading processor 22 sets the value of the integrated data amount buffer to 0 (step 30).
2) According to the data in the data file name buffer 27, the data file in the data file storage device 2 is opened, and the read data is written in the data buffer 28 (step 303).

【0051】次に、ステップ304では、キーデータフ
ァイル出力処理部24がキーデータファイルを作成し、
データファイル名バッファ27のデータの拡張子部分を
書き込む。
Next, at step 304, the key data file output processing section 24 creates a key data file,
The data extension part of the data file name buffer 27 is written.

【0052】ステップ305では、キーワード判定処理
部23がデータバッファ28から、予め定めたサイズ分
のデータを読込み、データの先頭からの積算データ量を
積算データ量バッファ29に書込む。そして、ステップ
305で読込んだデータがキーワード区切り記号に一致
するかどうかを評価する(ステップ306)。この結
果、区切り記号に一致すると判定された場合(ステップ
307)、ステップ308で、キーワードのデータサイ
ズをキーワードデータサイズバッファ30に書きこみ、
キーデータファイル出力処理部24に、キーデータの書
き込み指令を出す。キーデータファイル出力処理部24
は、この指令により積算データ量バッファ29と、キー
ワードデータサイズバッファ30の値をキーデータファ
イルに出力する。ステップ307でキーデータ以外の場
合は、ステップ308をスキップして、ステップ309
に進む。
In step 305, the keyword determination processing section 23 reads data of a predetermined size from the data buffer 28, and writes the integrated data amount from the head of the data to the integrated data amount buffer 29. Then, it is evaluated whether the data read in step 305 matches the keyword delimiter (step 306). As a result, if it is determined that the keyword matches the delimiter (step 307), the data size of the keyword is written to the keyword data size buffer 30 in step 308, and
A key data write command is issued to the key data file output processing unit 24. Key data file output processing unit 24
Outputs the values of the integrated data amount buffer 29 and the keyword data size buffer 30 to the key data file in response to this command. If it is determined in step 307 that the data is not key data, step 308 is skipped and step 309 is executed.
Proceed to.

【0053】ステップ309では、キーワード判定処理
部23が、積算データ量バッファ29のデータを更新す
る。次にステップ310では、キーワード判定処理部2
3がデータバッファ28から、予め定めたサイズ分のデ
ータを読込む。以上のステップ305〜310の処理を
データバッファ28の全てのデータにつき繰り返す。全
てのデータにつき処理が完了したら(ステップ311)
でデータファイルを閉じ(ステップ312)、ステップ
313でキーデータファイルを閉じる。以上の処理によ
りデータファイルから、キーデータファイルを生成する
ことができる。
In step 309, the keyword judgment processing unit 23 updates the data in the integrated data amount buffer 29. Next, at step 310, the keyword determination processing unit 2
3 reads data of a predetermined size from the data buffer 28. The above steps 305 to 310 are repeated for all data in the data buffer 28. When processing is completed for all data (step 311)
Closes the data file (step 312), and closes the key data file in step 313. Through the above processing, a key data file can be generated from the data file.

【0054】上記のように、第二の実施形態にて生成す
るキーデータファイルは、前記第一の実施形態のドキュ
メント編集装置に組み込まれたデータファイル検索手段
にて検索処理可能である。
As described above, the key data file generated in the second embodiment can be searched by the data file search means incorporated in the document editing apparatus of the first embodiment.

【0055】なお、上記の第二の実施形態では、キーワ
ード区切り記号にてキーワードデータを識別したが、キ
ーワード区切り記号ではなく、キーワードとして使用可
能な単語を予め記憶し、処理対象ドキュメントのデータ
ファイル内に、この単語が見つかった場合に、これをキ
ーワードとして処理することも可能である。
In the second embodiment, the keyword data is identified by the keyword delimiter. However, instead of the keyword delimiter, words that can be used as keywords are stored in advance and are stored in the data file of the document to be processed. Alternatively, if this word is found, it can be processed as a keyword.

【0056】[0056]

【発明の効果】以上説明したように本発明によれば、ド
キュメントのデータファイル中のキーワードのデータ位
置およびサイズのデータを保持するキーデータファイル
を利用することが可能となる。これにより、任意のデー
タファイルについてキーデータのみを抽出できることか
ら、そのドキュメントを作成したツールによらず汎用的
に目的とするドキュメントのデータファイルを検索する
ことが可能となる。よって、利用者はいちいち複数のツ
ールでドキュメントを検索する必要がなくなり、そのた
めの時間を節約することができる。
As described above, according to the present invention, it is possible to use a key data file that holds data on the data position and size of a keyword in a document data file. As a result, since only key data can be extracted from an arbitrary data file, it is possible to search for a data file of a target document in a general-purpose manner regardless of a tool that created the document. This eliminates the need for the user to search for the document by using a plurality of tools, thereby saving time.

【0057】また、本発明では、ドキュメントを作成し
たツールによるデータフォーマットをそのまま利用で
き、検索のために利用するキーデータファイルには、デ
ータファイルのファイル名の拡張子と、キーワードのデ
ータへのポインタおよびそのサイズのデータしか保持し
ないことから、データファイルをテキストデータとして
保持する場合と比べ、大幅にデータ量を軽減できるとと
もに、検索に関係ないデータまで検索対象とすることを
防止できる。これにより、より記憶容量の小さいデータ
ファイル記憶装置でも、データファイルを記憶すること
が可能であり、また、より短い検索処理時間で検索を行
うことが可能となる。
Further, according to the present invention, the data format of the tool that created the document can be used as it is, and the key data file used for the search includes the file name extension of the data file and the pointer to the keyword data. In addition, since only data of that size is stored, the amount of data can be significantly reduced as compared with the case where a data file is stored as text data, and data unrelated to the search can be prevented from being searched. As a result, a data file can be stored even in a data file storage device having a smaller storage capacity, and a search can be performed in a shorter search processing time.

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

【図1】本発明の一実施形態のドキュメント編集装置の
構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a document editing device according to an embodiment of the present invention.

【図2】処理の対象とするデータファイル及びキーデー
タファイルの構造を示す概念図。
FIG. 2 is a conceptual diagram showing the structure of a data file and a key data file to be processed.

【図3】表示画面の実施形態を示す図。FIG. 3 is a diagram showing an embodiment of a display screen.

【図4】表示画面の実施形態を示す図。FIG. 4 is a diagram showing an embodiment of a display screen.

【図5】表示画面の実施形態を示す図。FIG. 5 is a diagram showing an embodiment of a display screen.

【図6】本発明の一実施形態のドキュメント編集装置の
処理の流れを示すフローチャート。
FIG. 6 is a flowchart showing the flow of processing of the document editing apparatus according to the embodiment of the present invention.

【図7】本発明の一実施形態のドキュメント編集装置の
処理の流れを示すフローチャート。
FIG. 7 is a flowchart showing the flow of processing of the document editing apparatus according to the embodiment of the present invention.

【図8】本発明の他の実施形態のキーデータファイル生
成装置の構成を示すブロック図。
FIG. 8 is a block diagram showing a configuration of a key data file generation device according to another embodiment of the present invention.

【図9】処理の対象とするデータファイル及びキーデー
タファイルの構造を示す概念図。
FIG. 9 is a conceptual diagram showing the structure of a data file and a key data file to be processed.

【図10】本発明の他の実施形態のキーデータファイル
生成装置の処理の流れを示すフローチャート。
FIG. 10 is a flowchart showing the flow of processing of a key data file generation device according to another embodiment of the present invention.

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

1…ドキュメント編集装置、2…データファイル記憶装
置、3…キーデータファイル生成装置、10…表示手
段、11…データ入力手段、12…ドキュメント編集手
段、13…データサイズ測定手段、14…キーデータフ
ァイル出力手段、15…検索条件入力手段、16…キー
ワード検索手段、17…キーデータファイル検索手段、
21…データファイル名入力処理部、22…データファ
イル読込み処理部、23…キーワード判定処理部、24
…キーデータファイル出力処理部、25…データ入力手
段、26…キーワード区切り記号記憶手段、27…デー
タファイル名バッファ、28…データバッファ、29…
積算データ量バッファ、30…キーワードサイズバッフ
ァ。
DESCRIPTION OF SYMBOLS 1 ... Document editing device, 2 ... Data file storage device, 3 ... Key data file generation device, 10 ... Display means, 11 ... Data input means, 12 ... Document editing means, 13 ... Data size measuring means, 14 ... Key data file Output means, 15 ... search condition input means, 16 ... keyword search means, 17 ... key data file search means,
21: Data file name input processing unit, 22: Data file reading processing unit, 23: Keyword judgment processing unit, 24
... key data file output processing unit, 25 ... data input means, 26 ... keyword delimiter storage means, 27 ... data file name buffer, 28 ... data buffer, 29 ...
Integrated data amount buffer, 30 ... keyword size buffer.

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 データファイルと、データファイルの中
の検索キーとなるデータの抽出に必要な情報を保持する
キーデータファイルを有するデータファイル記憶装置か
ら目的とするデータファイルを抽出するドキュメントデ
ータ検索装置であって、 外部から入力される検索キーワードを記憶する検索条件
入力手段と、前記データファイル記憶装置から全てのキ
ーデータファイルを抽出し読込み記憶するキーデータフ
ァイル検索手段と、該キーデータファイル検索手段が読
込んだキーデータファイルからキーデータを読込み記憶
し、該読込んだキーデータと前記検索キーワードとの一
致を検査し、一致するキーデータを有するデータファイ
ルの情報をバッファに記憶するキーワード検索手段と、
該キーワード検索手段のバッファに保持するデータを表
示する表示手段とを具備することを特徴とするドキュメ
ントデータ検索装置。
1. A document data search apparatus for extracting a target data file from a data file storage device having a data file and a key data file holding information necessary for extracting data serving as a search key in the data file. A search condition input means for storing a search keyword inputted from outside; a key data file search means for extracting and reading and storing all key data files from the data file storage device; and a key data file search means. Keyword search means for reading and storing key data from the read key data file, checking whether the read key data matches the search keyword, and storing information of a data file having the matching key data in a buffer. When,
Display means for displaying data held in a buffer of the keyword search means.
【請求項2】 データファイルと、データファイル中の
検索キーとなるデータの抽出に必要な情報を保持するキ
ーデータファイルを有するデータファイル記憶装置から
目的とするデータファイルを抽出するドキュメントデー
タ検索方法であって、 検索キーワードの入力情報に応じて検索キーワードのデ
ータを解析し、該解析結果に基づいて前記データファイ
ル記憶装置から全てのキーデータファイルを読込み、該
読込んだキーデータファイルからキーデータを抽出し、
該抽出したキーデータと前記検索キーワードのデータと
の比較を行うことにより一致するキーデータがあれば、
そのキーデータを保持するデータファイルを検索し、該
検索したデータファイルのファイル名を表示することを
特徴とするドキュメントデータ検索方法。
2. A document data search method for extracting a target data file from a data file storage device having a data file and a key data file holding information necessary for extracting data serving as a search key in the data file. Analyzing the data of the search keyword according to the input information of the search keyword, reading all the key data files from the data file storage device based on the analysis result, and extracting the key data from the read key data file. Extract,
By comparing the extracted key data with the data of the search keyword, if there is key data that matches,
A document data search method characterized by searching for a data file holding the key data and displaying the file name of the searched data file.
【請求項3】 データファイルと、データファイル中の
検索キーとなるデータの抽出に必要な情報を保持するデ
ータファイルを有するデータファイル記憶装置から目的
とするデータファイルを抽出するドキュメントデータ検
索方法であって、 検索キーワードと検索対象記憶装置のデータの入力情報
に応じて検索キーワードのデータを解析し、該解析結果
に基づき前記データファイル記憶装置の検索対象記憶装
置から全てのキーデータファイルを読込み、該読込んだ
キーデータファイルからキーデータを抽出し、該抽出し
たキーデータと前記検索キーワードのデータとの比較を
行うことにより一致するキーデータがあれば、そのキー
データを保持するデータファイルを検索し、該検索した
データファイルのファイル名を表示することを特徴とす
るドキュメントデータ検索方法。
3. A document data search method for extracting a target data file from a data file storage device having a data file and information necessary for extracting data serving as a search key in the data file. Analyzing the data of the search keyword in accordance with the input information of the search keyword and the data of the search target storage device, and reading all key data files from the search target storage device of the data file storage device based on the analysis result; If key data is extracted from the read key data file and the extracted key data is compared with the search keyword data, if there is a matching key data, a data file holding the key data is searched. Displaying the file name of the searched data file. Document data search method.
【請求項4】 編集対象ドキュメントに対する利用者に
よる操作を入力するデータ入力手段と、該データ入力手
段を介して入力されたデータに基づき、ドキュメントに
記述する文字や図形のデータに対する編集処理を実行
し、処理の結果をバッファに記憶するドキュメント編集
手段と、該ドキュメント編集手段が記憶するドキュメン
トのデータをもとにドキュメントを表示する表示手段と
を備え、前記ドキュメント編集手段が保持するドキュメ
ントのデータをファイルの形で保持するデータファイル
記憶装置に接続されるドキュメント編集装置であって、 前記ドキュメント編集手段として編集対象のドキュメン
ト中のデータについて前記入力手段を介して入力された
データに基づき検索で使用するキーデータとするか否か
の属性データの設定をする編集処理を実行するドキュメ
ント編集手段と、該ドキュメント編集手段のバッファが
保持するドキュメントのデータを前記データファイル記
憶装置にデータファイルとして書込むと共に、そのとき
のキーデータの位置とその大きさを解析して記憶するデ
ータサイズ測定手段と、該データサイズ測定手段が保持
するキーデータの位置と大きさの情報を、前記データフ
ァイル記憶装置のキーデータファイルに書込むキーデー
タファイル出力手段とを具備することを特徴とするドキ
ュメント編集装置。
4. A data input means for inputting a user's operation on a document to be edited and, based on data input via the data input means, execute editing processing on character or graphic data described in the document. Document editing means for storing a processing result in a buffer; and display means for displaying a document based on the document data stored in the document editing means. A document editing device connected to a data file storage device that holds data in the form of: a key used in a search based on data input through the input means for data in a document to be edited as the document editing means. Setting of attribute data whether to be data or not Document editing means for executing an editing process, and writing data of a document held in a buffer of the document editing means as a data file in the data file storage device, and analyzing the position and size of key data at that time. And a key data file output means for writing information on the position and size of the key data held by the data size measurement means into a key data file of the data file storage device. A document editing device, characterized in that:
【請求項5】 前記請求項4記載のドキュメント編集装
置であって、前記ドキュメント編集手段は、バッファに
保持する検索で使用するキーデータとするか否かの属性
データの値を前記データ入力手段を介して入力される情
報に応じて変更する機能を有することを特徴とするドキ
ュメント編集装置。
5. The document editing apparatus according to claim 4, wherein the document editing unit sets the data input unit to a value of attribute data indicating whether to use key data used in a search held in a buffer or not. A document editing device having a function of changing according to information input via the document editing apparatus.
【請求項6】 前記請求項4記載のドキュメント編集装
置であって、前記ドキュメント編集手段は、バッファに
保持する検索で使用するキーデータとするか否かの属性
データの値に応じて、前記表示手段に表示する対応項目
が区別できるようにドキュメントの内容を表示する機能
を有することを特徴とするドキュメント編集装置。
6. The document editing apparatus according to claim 4, wherein the document editing unit performs the display in accordance with a value of attribute data indicating whether to use key data used in a search held in a buffer or not. A document editing device having a function of displaying the contents of a document so that corresponding items displayed on the means can be distinguished.
【請求項7】 利用者により編集されたドキュメントの
データをデータファイル記憶装置に保存し、利用者によ
り設定される検索キーワードのデータにより目的とする
データファイルを前記データファイル記憶装置から検索
するドキュメント編集装置であって、 前記請求項4記載のドキュメント編集装置と、前記請求
項1記載のドキュメントデータ検索装置とを具備するこ
とを特徴とするドキュメント編集装置。
7. A document editor for storing data of a document edited by a user in a data file storage device and retrieving a target data file from the data file storage device based on search keyword data set by the user. An apparatus, comprising: the document editing apparatus according to claim 4; and the document data search apparatus according to claim 1.
【請求項8】 利用者からの入力情報を処理するデータ
入力手段と、データファイルのデータの中で、検索用の
キーデータを識別するためのデータを記憶するキーワー
ド区切り記号記憶手段と、作業用の内部データを一時的
に記憶するデータファイル名バッファと、データバッフ
ァと、積算データ量バッファと、および、キーワードデ
ータサイズバッファとを備え、ワードプロセッサやCA
Dなどで作成された処理対象のドキュメントのデータフ
ァイルを保持するデータファイル記憶装置に接続し、該
データファイル記憶装置に保持するデータファイルの検
索用のキーデータファイルを生成するキーデータファイ
ル生成装置であって、 データ入力手段を介して入力されるデータファイルのフ
ァイル名のデータを解析しデータファイル名バッファに
書き込むデータファイル名入力処理部と、データファイ
ル名バッファのデータにしたがい処理対象のデータファ
イルをデータファイル記憶装置から読込みデータバッフ
ァに書き込むデータファイル読込み処理部と、前記デー
タバッファのデータを読込み、読込んだデータのデータ
サイズを評価して、データの先頭からの積算データ量を
積算データ量バッファに書き込むとともに、キーワード
区切り記号記憶手段に保持するデータをもとに処理対象
のデータがキーデータであるかどうかを判定して、キー
データであると判定したときにキーワードデータサイズ
バッファにそのデータサイズの値を書込むキーワード判
定処置部と、前記データファイル記憶装置にキーデータ
ファイルを作成し、キーワードデータサイズバッファに
新たなデータが書き込まれたときに積算データ量バッフ
ァの値とキーワードデータサイズバッファの値をキーデ
ータファイルに出力するキーデータファイル出力処理部
とを具備することを特徴とするキーデータファイル生成
装置。
8. A data input means for processing input information from a user, a keyword delimiter storage means for storing data for identifying key data for search in data of a data file, A data file name buffer for temporarily storing internal data of the data, a data buffer, an integrated data amount buffer, and a keyword data size buffer.
D, etc., connected to a data file storage device that holds the data file of the document to be processed created in D, etc., and a key data file generation device that generates a key data file for searching the data file held in the data file storage device A data file name input processing unit that analyzes data of a file name of a data file input through the data input means and writes the data to a data file name buffer; and a data file to be processed according to the data of the data file name buffer. A data file read processing unit for writing data from a data file storage device to a read data buffer; reading data in the data buffer; evaluating a data size of the read data; and calculating an integrated data amount from the beginning of the data to an integrated data amount buffer. And write It is determined whether the data to be processed is key data based on the data held in the keyword delimiter storage means, and when it is determined that the data is key data, the value of the data size is stored in the keyword data size buffer. A keyword determination processing unit to be written, and a key data file created in the data file storage device, and when new data is written to the keyword data size buffer, the value of the integrated data amount buffer and the value of the keyword data size buffer are used as keys. A key data file generation device, comprising: a key data file output processing unit for outputting to a data file.
【請求項9】 前記請求項8記載のキーデータファイル
生成装置であって、前記キーデータファイル出力処理部
は、前記データファイル名バッファに記憶するファイル
名の拡張子であるドキュメントデータ拡張子の部分を予
め定める別の拡張子に置き換えたファイル名のキーデー
タファイルを生成し、該キーデータファイルにドキュメ
ントデータ拡張子のデータを書込む機能を有することを
特徴とするキーデータファイル生成装置。
9. The key data file generation device according to claim 8, wherein the key data file output processing unit has a document data extension part which is an extension of a file name stored in the data file name buffer. A key data file generating apparatus having a function of generating a key data file having a file name in which is replaced with another predetermined extension, and writing data of the document data extension into the key data file.
【請求項10】 前記請求項8記載のキーデータファイ
ル生成装置であって、前記キーワード区切り記号記憶手
段は、データファイル中のキーデータの前後に連続して
書込まれるデータの系列を保持することを特徴とするキ
ーデータファイル生成装置。
10. The key data file generation device according to claim 8, wherein the keyword delimiter storage unit holds a series of data written continuously before and after the key data in the data file. A key data file generation device characterized by the above-mentioned.
【請求項11】 前記請求項8記載のキーデータファイ
ル生成装置であって、前記キーワード区切り記号記憶手
段は、キーデータとして使用するデータのリストを記憶
することを特徴とするキーデータファイル生成装置。
11. The key data file generating apparatus according to claim 8, wherein said keyword delimiter storing means stores a list of data to be used as key data.
【請求項12】 データファイルから検索用のデータフ
ァイルを生成するデータファイル生成方法であって、 ワードプロセッサやCADなどで作成された処理対象の
ドキュメントのデータファイルのファイル名の入力を解
析し、その拡張子とそれ以外のデータに分離して記憶
し、該記憶した拡張子のデータをデータファイルに書込
み、前記処理対象のデータファイルを読込み、予め定め
られたキーデータ区切り記号によりキーデータを抽出
し、該抽出したキーデータのサイズと、該データのデー
タファイル中の相対位置のデータを記憶し、該記憶した
キーデータの相対位置とそのデータサイズのデータをキ
ーデータファイルに書込むことを特徴とするキーデータ
ファイル生成方法。
12. A data file generating method for generating a search data file from a data file, the method comprising analyzing an input of a file name of a data file of a document to be processed created by a word processor, CAD, or the like, and expanding the data file. Child and the other data are separately stored, the data of the stored extension is written in a data file, the data file to be processed is read, and key data is extracted by a predetermined key data delimiter, The size of the extracted key data and the data of the relative position in the data file of the data are stored, and the data of the relative position of the stored key data and the data size are written in the key data file. Key data file generation method.
【請求項13】 ワードプロセッサやCADなどで作成
されたドキュメントのデータファイルを保持するデータ
ファイル記憶装置から目的とするデータファイルを抽出
するドキュメントデータ検索方法であって、 請求項8記載のキーデータファイル生成装置によって、
データファイル記憶装置にデータファイル中の検索キー
となるキーデータの抽出に必要な情報を保持するキーデ
ータファイルを作成し、請求項1記載のドキュメントデ
ータ検索装置によって、前記データファイル記憶装置か
ら目的とするデータファイルを抽出することを特徴とす
るドキュメントデータ検索方法。
13. A document data search method for extracting a target data file from a data file storage device holding a data file of a document created by a word processor, CAD, or the like, wherein the key data file generation according to claim 8. Depending on the device,
2. A document data search device according to claim 1, wherein a key data file for holding information necessary for extracting key data serving as a search key in the data file is created in the data file storage device. A document data search method characterized by extracting a data file to be searched.
JP9328915A 1997-11-28 1997-11-28 Method and device for document data retrieval and document editing device Pending JPH11161666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9328915A JPH11161666A (en) 1997-11-28 1997-11-28 Method and device for document data retrieval and document editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9328915A JPH11161666A (en) 1997-11-28 1997-11-28 Method and device for document data retrieval and document editing device

Publications (1)

Publication Number Publication Date
JPH11161666A true JPH11161666A (en) 1999-06-18

Family

ID=18215524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9328915A Pending JPH11161666A (en) 1997-11-28 1997-11-28 Method and device for document data retrieval and document editing device

Country Status (1)

Country Link
JP (1) JPH11161666A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040002157A (en) * 2002-06-29 2004-01-07 인벤텍 코오포레이션 Input system and method with dynamic database adjustment function
JP2012069071A (en) * 2010-09-27 2012-04-05 Casio Comput Co Ltd Method and apparatus for generating inverted index for retrieving n-gram, retrieval method and retrieval apparatus using inverted index for retrieving n-gram, and computer program
JP2012073718A (en) * 2010-09-28 2012-04-12 Casio Comput Co Ltd Generation method and generation apparatus of transposition index for n-gram retrieval, retrieval method and retrieval device using the transposition index, and computer program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040002157A (en) * 2002-06-29 2004-01-07 인벤텍 코오포레이션 Input system and method with dynamic database adjustment function
JP2012069071A (en) * 2010-09-27 2012-04-05 Casio Comput Co Ltd Method and apparatus for generating inverted index for retrieving n-gram, retrieval method and retrieval apparatus using inverted index for retrieving n-gram, and computer program
JP2012073718A (en) * 2010-09-28 2012-04-12 Casio Comput Co Ltd Generation method and generation apparatus of transposition index for n-gram retrieval, retrieval method and retrieval device using the transposition index, and computer program

Similar Documents

Publication Publication Date Title
JP3691844B2 (en) Document processing method
US20050005239A1 (en) System and method for automatic insertion of cross references in a document
JPH08241332A (en) Device and method for retrieving all-sentence registered word
WO1998018090A1 (en) Method and apparatus for data processing with ambiguous data structures
JP4160548B2 (en) Document summary creation system, method, and program
JP3828379B2 (en) Test specification generation support apparatus, method, program, and recording medium
JP3205406B2 (en) Reference target variable determination processing method and translation processing system
JPH08147320A (en) Information retrieving method and system
JP2693914B2 (en) Search system
JPH11161666A (en) Method and device for document data retrieval and document editing device
JP2005173999A (en) Device, system and method for searching electronic file, program, and recording media
JPH06309365A (en) Document processor
JPH0877196A (en) Extracting device for document information
JPH05158984A (en) Device for extracting character string
JPH1115826A (en) Document analyzer and its method
JP3239845B2 (en) Full-text search apparatus and method
JPH07239861A (en) Document retrieving device
JPH09146968A (en) Document retrieving method
JP3237709B2 (en) Document processing apparatus and document processing method
JPH09223111A (en) Method for executing command for data processor
JPH07319890A (en) Document registration/retrieval system
JPH05298368A (en) Method for inputting retrieving word in electronic filing system
JP2838972B2 (en) Automatic indexing device
JP2967995B2 (en) Document processing apparatus and document processing method
JPH0667870A (en) Software analyzer