JP5874997B2 - SEARCH SYSTEM, SEARCH METHOD, AND PROGRAM - Google Patents

SEARCH SYSTEM, SEARCH METHOD, AND PROGRAM Download PDF

Info

Publication number
JP5874997B2
JP5874997B2 JP2011200704A JP2011200704A JP5874997B2 JP 5874997 B2 JP5874997 B2 JP 5874997B2 JP 2011200704 A JP2011200704 A JP 2011200704A JP 2011200704 A JP2011200704 A JP 2011200704A JP 5874997 B2 JP5874997 B2 JP 5874997B2
Authority
JP
Japan
Prior art keywords
search
data
field
record
virtual
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.)
Active
Application number
JP2011200704A
Other languages
Japanese (ja)
Other versions
JP2013061860A (en
Inventor
智也 岡澤
智也 岡澤
大介 尾▲崎▼
大介 尾▲崎▼
邦明 芹澤
邦明 芹澤
Original Assignee
株式会社オービック
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 株式会社オービック filed Critical 株式会社オービック
Priority to JP2011200704A priority Critical patent/JP5874997B2/en
Publication of JP2013061860A publication Critical patent/JP2013061860A/en
Application granted granted Critical
Publication of JP5874997B2 publication Critical patent/JP5874997B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、データベース内のデータを検索する検索システムに関し、さらに、検索方法及び検索プログラムに関する。   The present invention relates to a search system for searching data in a database, and further relates to a search method and a search program.

企業において使用される業務用コンピュータシステムにおいて、データの入力支援のために検索機能を付加することが求められる場合がある。例えば、7桁の郵便番号を入力するために、オペレータが入力したい郵便番号の最初の3桁をタイプするだけで、当該3桁が一致する郵便番号のリストを端末上に表示する機能が求められる場合がある。このような検索機能に加えて、当該リストの中から、入力したい郵便番号をオペレータが選択すれば、残りの4桁をタイプしなくても、7桁の郵便番号が入力されるという機能も求められる場合がある。   In a business computer system used in a company, it may be required to add a search function to support data input. For example, in order to input a 7-digit zip code, a function is required to display on the terminal a list of zip codes that match the three digits simply by typing the first three digits of the zip code that the operator wants to input. There is a case. In addition to such a search function, if the operator selects a postal code to be input from the list, a function is also required in which a 7-digit postal code is input without typing the remaining four digits. May be.

上述のような検索機能は、ユーザである企業によって、さらにはオペレータによって、様々なニーズが存在する。例えば、上述の郵便番号を入力するために、オペレータが入力したい郵便番号に対応する「住所」の一部をタイプするだけで、当該住所の一部が一致する郵便番号のリストを端末に表示する機能が求められる場合もある。また例えば、上述の郵便番号を入力するために、オペレータが入力したい郵便番号に対応する住所の「読み仮名」の一部をタイプするだけで、当該住所の読み仮名の一部が一致する郵便番号のリストを端末に表示する機能が求められる場合もある。   The search function as described above has various needs depending on the user company and the operator. For example, in order to input the above-described zip code, the operator simply types a part of the “address” corresponding to the zip code that the operator wants to input, and a list of zip codes that match the part of the address is displayed on the terminal. Sometimes functionality is required. In addition, for example, in order to input the above-described postal code, the operator only needs to type a part of the “reading kana” of the address corresponding to the postal code that the operator wants to input, and the postal code in which a part of the reading kana of the address matches There is a case where a function for displaying a list of the above is displayed on the terminal.

従来、検索機能の多様なニーズに対応するために、個々のニーズに合わせてプログラムを個別開発する必要があった。
このため、検索項目が多ければ多いほど開発コストが膨大となる可能性があった。
Conventionally, in order to respond to various needs of the search function, it has been necessary to individually develop programs according to individual needs.
For this reason, there is a possibility that the development cost increases as the number of search items increases.

特開平9−305611号公報JP-A-9-305611

そこで本発明は、多様な検索ニーズにも低コストで対応できる検索システム、検索方法及びプログラムを提供することを課題とする。   Therefore, an object of the present invention is to provide a search system, a search method, and a program that can respond to various search needs at low cost.

上記課題を解決するため、本発明の1つの観点に係る検索システムは、記憶装置に格納されたデータテーブルにアクセス可能な検索システムであって、検索キー及び検索対象情報を含む検索要求を受け付ける受付手段と、仮想テーブルの各レコードが、前記データテーブルの各レコードに含まれている複数のフィールドのデータを検索項目として含む第1のフィールドと、前記データテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを表示項目として含む第2のフィールドと、前記データテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを戻り値として含む第3のフィールドとを含むように前記仮想テーブルを定義する仮想テーブル定義情報を検索対象情報に対応付けて格納する格納手段と、前記受付手段が受け付けた検索キーを用いて、前記受付手段が受け付けた検索対象情報に対応付けられた仮想テーブル定義情報に従って定義される仮想テーブルにおいて複数のレコードに含まれている第1のフィールドのデータの検索を実行する検索手段と、前記検索の結果として抽出された少なくとも1つのレコードに含まれている第2のフィールドのデータを出力すると共に、前記検索の結果として複数のレコードが抽出されて、出力された複数のレコードに係るデータの内から1つのレコードに係るデータが選択された場合に、当該1つのレコードに含まれている第3のフィールドのデータをさらに出力する出力手段とを具備する。

In order to solve the above problem, a search system according to one aspect of the present invention is a search system that can access a data table stored in a storage device, and accepts a search request including a search key and search target information. Means, and each record of the virtual table includes a first field including, as search items , data of a plurality of fields included in each record of the data table, and at least one included in each record of the data table The virtual table includes a second field including data of one field as a display item, and a third field including data of at least one field included in each record of the data table as a return value. Storage means for storing virtual table definition information to be defined in association with search target information The first field included in the plurality of records in the virtual table defined according to the virtual table definition information associated with the search target information received by the receiving unit using the search key received by the receiving unit A search means for performing a search for the data of the second field and a second field data included in at least one record extracted as a result of the search, and a plurality of records are extracted as a result of the search Output means for further outputting the data of the third field included in the one record when the data relating to one record is selected from the data relating to the plurality of records outputted. It has.

本発明の1つの観点によれば、受付手段が受け付けた検索対象情報に対応付けられた仮想テーブル定義情報に従って、データテーブルの複数のフィールドのデータが仮想テーブルの第1のフィールドに含まれるように仮想テーブルを定義し、この仮想テーブルに対して検索を実行するようにしたことにより、多様な検索ニーズに対しても、仮想テーブルの定義を変更することによって対応することができる。従って、多様な検索ニーズにも低コストで対応することができる。

According to one aspect of the present invention , data in a plurality of fields of a data table is included in the first field of the virtual table according to the virtual table definition information associated with the search target information received by the receiving unit. By defining a virtual table and performing a search on this virtual table, it is possible to cope with various search needs by changing the definition of the virtual table. Therefore, it is possible to respond to various search needs at a low cost.

本発明の一実施形態に係る検索システムを概略的に示すブロック図である。1 is a block diagram schematically showing a search system according to an embodiment of the present invention. 第1の実施例において、記憶装置に格納されたデータテーブルのデータ構成例を示す図である。In a 1st Example, it is a figure which shows the data structural example of the data table stored in the memory | storage device. 第1の実施例において、仮想テーブルを定義した情報の例を示す図である。It is a figure which shows the example of the information which defined the virtual table in a 1st Example. 第1の実施例において、仮想テーブルの例を示す図である。In a 1st Example, it is a figure which shows the example of a virtual table. 第1の実施例において、検索結果の例を示す図である。In a 1st Example, it is a figure which shows the example of a search result. 第2の実施例において、記憶装置に格納されたデータテーブルのデータ構成例を示す図である。In a 2nd Example, it is a figure which shows the data structural example of the data table stored in the memory | storage device. 第2の実施例において、仮想テーブルを定義した情報の例を示す図である。In a 2nd Example, it is a figure which shows the example of the information which defined the virtual table. 第2の実施例において、仮想テーブルの例を示す図である。In a 2nd Example, it is a figure which shows the example of a virtual table. 第2の実施例において、検索結果の例を示す図である。In a 2nd Example, it is a figure which shows the example of a search result.

以下、本発明の実施形態に係る検索システムについて、図面を参照しながら詳しく説明する。   Hereinafter, a search system according to an embodiment of the present invention will be described in detail with reference to the drawings.

<1.検索システムの構成>
図1は、本発明の一実施形態に係る検索システムを概略的に示すブロック図である。図1に示す検索システムは、クライアント端末10に接続されたアプリケーションサーバ20と、アプリケーションサーバ20に接続されたデータベースサーバ30と、を含んでいる。クライアント端末10、アプリケーションサーバ20、データベースサーバ30は、いずれも、CPU、メモリ、記憶装置等を備えたコンピュータ装置である。
<1. Configuration of search system>
FIG. 1 is a block diagram schematically showing a search system according to an embodiment of the present invention. The search system shown in FIG. 1 includes an application server 20 connected to the client terminal 10 and a database server 30 connected to the application server 20. The client terminal 10, the application server 20, and the database server 30 are all computer devices including a CPU, a memory, a storage device, and the like.

なお、ここでは、検索システムは、複数のコンピュータ装置を含むものとして図示したが、これらのコンピュータ装置の機能が1台のコンピュータ装置に組み込まれていても良い。   Although the search system is illustrated here as including a plurality of computer devices, the functions of these computer devices may be incorporated into one computer device.

クライアント端末10は、入力装置11と、検索要求部12と、検索結果受信部16と、表示装置17と、を備えている。入力装置11は、検索条件(検索キーW、検索対象x1)を入力するキーボードやマウス等を含んでいる。検索要求部12は、入力装置11によって入力された検索条件を含む検索要求を作成し、アプリケーションサーバ20に送信する機能を有している。検索結果受信部16は、アプリケーションサーバ20から検索結果を受信する機能を有している。表示装置17は、入力装置11によって入力された検索条件等の入力データや、検索結果受信部16によって受信した検索結果のデータを表示するディスプレイ装置を含んでいる。   The client terminal 10 includes an input device 11, a search request unit 12, a search result receiving unit 16, and a display device 17. The input device 11 includes a keyboard and a mouse for inputting search conditions (search key W, search target x1). The search request unit 12 has a function of creating a search request including a search condition input by the input device 11 and transmitting the search request to the application server 20. The search result receiving unit 16 has a function of receiving a search result from the application server 20. The display device 17 includes a display device that displays input data such as search conditions input by the input device 11 and search result data received by the search result receiving unit 16.

アプリケーションサーバ20は、検索要求受付部22と、検索要求部23と、検索結果受信部25と、検索結果出力部26と、を備えている。検索要求受付部22は、クライアント端末10からの検索要求を受付ける機能を有している。検索要求部23は、検索要求受付部22によって受付けた検索要求に基づいて、検索条件(検索キーW、仮想テーブルの定義情報X)を含む検索要求を作成し、この作成した検索要求をデータベースサーバ30に送信する機能を有している。検索結果受信部25は、データベースサーバ30から検索結果を受信する機能を有している。検索結果出力部26は、検索結果受信部25によって受信した検索結果(出力テーブルZ)の少なくとも一部をクライアント端末10に出力する機能を有している。   The application server 20 includes a search request receiving unit 22, a search request unit 23, a search result receiving unit 25, and a search result output unit 26. The search request receiving unit 22 has a function of receiving a search request from the client terminal 10. The search request unit 23 creates a search request including the search condition (search key W, virtual table definition information X) based on the search request received by the search request receiving unit 22, and the created search request is stored in the database server. 30. The search result receiving unit 25 has a function of receiving search results from the database server 30. The search result output unit 26 has a function of outputting at least a part of the search results (output table Z) received by the search result receiving unit 25 to the client terminal 10.

データベースサーバ30は、検索要求受付部33と、検索部34と、検索結果出力部35と、を備えている。検索要求受付部33は、アプリケーションサーバ20からの検索要求を受付ける機能を有している。検索部34は、検索要求受付部33によって受付けた検索要求に基づき、検索キーWを用いて仮想テーブルYの検索を実行し、検索結果(出力テーブルZ)を作成する機能を有している。検索結果出力部35は、検索部34によって作成された検索結果をアプリケーションサーバ20に出力する機能を有している。   The database server 30 includes a search request receiving unit 33, a search unit 34, and a search result output unit 35. The search request receiving unit 33 has a function of receiving a search request from the application server 20. The search unit 34 has a function of executing a search of the virtual table Y using the search key W based on the search request received by the search request receiving unit 33 and creating a search result (output table Z). The search result output unit 35 has a function of outputting the search result created by the search unit 34 to the application server 20.

仮想テーブルYは、定義情報Xに従って定義されるテーブルである。仮想テーブルYのデータは、そのまま実存のデータとして格納されているのではなく、実存のデータとしては、データベースサーバ30に接続された記憶装置40に、各種データテーブル41〜43が格納されている。仮想テーブルYは、定義情報Xに従って、データテーブル41〜43(実存テーブル)のデータを眺めたものである。定義情報Xは、データテーブル41〜43の見方を定義したものと言える。   The virtual table Y is a table defined according to the definition information X. The data of the virtual table Y is not stored as real data as it is, but as the real data, various data tables 41 to 43 are stored in the storage device 40 connected to the database server 30. The virtual table Y looks at the data in the data tables 41 to 43 (existing tables) according to the definition information X. It can be said that the definition information X defines how to read the data tables 41 to 43.

<2.検索システムの動作>
まず、図1に示すように、クライアント端末10は、入力装置11によって入力された検索条件(検索キーW、検索対象x1)を含む検索要求を、アプリケーションサーバ20に送信し、アプリケーションサーバ20はこれを受付ける(S1)。
<2. Operation of the search system>
First, as shown in FIG. 1, the client terminal 10 transmits a search request including a search condition (search key W, search target x1) input by the input device 11 to the application server 20, and the application server 20 Is accepted (S1).

次に、アプリケーションサーバ20は、クライアント端末10から受付けた検索要求に基づいて、検索条件(検索キーW、仮想テーブルの定義情報X)を含む検索要求を作成し、この作成した検索要求をデータベースサーバ30に送信する(S2)。仮想テーブルの定義情報Xは、検索対象x1に対応付けられて、アプリケーションサーバ20の記憶装置に格納されている。   Next, the application server 20 creates a search request including a search condition (search key W, virtual table definition information X) based on the search request received from the client terminal 10, and uses the created search request as a database server. 30 (S2). The definition information X of the virtual table is stored in the storage device of the application server 20 in association with the search target x1.

次に、データベースサーバ30は、アプリケーションサーバ20から受付けた検索要求に基づき、検索キーWを用いて仮想テーブルYの検索を実行し、検索結果(出力テーブルZ)を作成する(S3)。仮想テーブルYは、定義情報Xに従って定義されている。   Next, the database server 30 searches the virtual table Y using the search key W based on the search request received from the application server 20, and creates a search result (output table Z) (S3). The virtual table Y is defined according to the definition information X.

定義情報Xの具体的な例については後述するが、定義情報Xは、仮想テーブルYにおいて2つのフィールド(Y1、Y2)を定義してもよい。そして、データベースサーバ30は、そのうちの1つのフィールド(Y1)における検索を実行し、当該検索の結果として抽出されたレコードに含まれる第2のフィールド(Y2)を用いて出力テーブルZを作成してもよい。
また、定義情報Xは、仮想テーブルYにおいて少なくとも3つのフィールド(Y1、Y2、Y3、…)を定義してもよい。そして、データベースサーバ30は、そのうちの1つのフィールド(Y1)における検索を実行し、当該検索の結果として抽出されたレコードに含まれる残りのフィールド(Y2、Y3、…)を用いて出力テーブルZを作成してもよい。
Although a specific example of the definition information X will be described later, the definition information X may define two fields (Y1, Y2) in the virtual table Y. Then, the database server 30 executes a search in one of the fields (Y1) and creates an output table Z using the second field (Y2) included in the record extracted as a result of the search. Also good.
The definition information X may define at least three fields (Y1, Y2, Y3,...) In the virtual table Y. Then, the database server 30 executes a search in one of the fields (Y1), and uses the remaining fields (Y2, Y3,...) Included in the record extracted as a result of the search to search the output table Z. You may create it.

次に、データベースサーバ30は、作成した検索結果(出力テーブルZ)をアプリケーションサーバ20に出力する(S4)。
次に、アプリケーションサーバ20は、データベースサーバ30から受信した検索結果(出力テーブルZ)の少なくとも一部をクライアント端末10に出力する(S5)。また、出力テーブルZの一部をクライアント端末10に出力した後、クライアント端末10において新たな検索キーWが入力された場合は、上述のS1〜S5の処理を繰り返す。
Next, the database server 30 outputs the created search result (output table Z) to the application server 20 (S4).
Next, the application server 20 outputs at least a part of the search result (output table Z) received from the database server 30 to the client terminal 10 (S5). In addition, after a part of the output table Z is output to the client terminal 10, when a new search key W is input at the client terminal 10, the above-described processing of S <b> 1 to S <b> 5 is repeated.

なお、出力テーブルZの各レコードが少なくとも2つのフィールド(Z2、Z3)を有する場合、アプリケーションサーバ20は、各レコードに含まれる1つのフィールド(Z2)のデータをクライアント端末10に出力してもよい。そして、クライアント端末10において出力テーブルZの1つのレコードが選択され、その選択された情報がアプリケーションサーバ20に送られてきた場合に、アプリケーションサーバ20は、当該選択されたレコードのもう1つのフィールド(Z3)のデータをクライアント端末10に出力してもよい。
また、出力テーブルZの各レコードが少なくとも2つのフィールド(Z2、Z4)を有する場合、アプリケーションサーバ20は、各レコードに含まれる少なくとも2つのフィールド(Z2、Z4)のデータをクライアント端末10に出力してもよい。
If each record of the output table Z has at least two fields (Z2, Z3), the application server 20 may output data of one field (Z2) included in each record to the client terminal 10. . Then, when one record of the output table Z is selected in the client terminal 10 and the selected information is sent to the application server 20, the application server 20 selects another field ( The data of Z3) may be output to the client terminal 10.
When each record of the output table Z has at least two fields (Z2, Z4), the application server 20 outputs data of at least two fields (Z2, Z4) included in each record to the client terminal 10. May be.

<3.第1の実施例>
次に、図2〜図5を参照しながら第1の実施例について説明する。第1の実施例は、オペレータが7桁の郵便番号を入力するための入力支援に用いられる検索機能に関係している。第1の実施例は、郵便番号の一部、郵便番号に対応する住所の一部、或いは住所の読み仮名の一部を、オペレータがタイプするだけで、該当する郵便番号の一覧を出力するものである。
<3. First Example>
Next, the first embodiment will be described with reference to FIGS. The first embodiment relates to a search function used for input support for an operator to input a 7-digit postal code. In the first embodiment, a part of a zip code, a part of an address corresponding to the zip code, or a part of an address reading pseudonym is output by the operator, and a list of the corresponding zip codes is output. It is.

<3−1.データテーブル41>
図2は、第1の実施例において、記憶装置40に格納されたデータテーブルのデータ構成例を示す図である。第1の実施例においては、記憶装置40に格納されたデータテーブル41が用いられる。
<3-1. Data Table 41>
FIG. 2 is a diagram illustrating a data configuration example of a data table stored in the storage device 40 in the first embodiment. In the first embodiment, a data table 41 stored in the storage device 40 is used.

図2に示すデータテーブル41は郵便番号のデータテーブルであり、1つのレコードにつき1つの郵便番号のデータが格納されている。データテーブル41の各レコードは、郵便番号の「最初の3桁」を格納するフィールドaと、郵便番号の「最後の4桁」を格納するフィールドbと、郵便番号に対応する「住所」を格納するフィールドcと、郵便番号に対応する住所の「読み仮名」を格納するフィールドdと、を有する。   The data table 41 shown in FIG. 2 is a postal code data table, and stores one postal code data per record. Each record of the data table 41 stores a field a for storing the “first three digits” of the postal code, a field b for storing the “last four digits” of the postal code, and an “address” corresponding to the postal code. And a field d for storing the “reading kana” of the address corresponding to the postal code.

第1の実施例においては、上述のデータテーブル41を利用して、検索対象である「郵便番号」を得るために「住所」等を検索キーとした検索ができるように、検索システムを構成する。   In the first embodiment, the search system is configured so that a search using “address” or the like as a search key can be performed using the above-described data table 41 in order to obtain “zip code” as a search target. .

<3−2.仮想テーブルの定義情報X>
図3は、第1の実施例において、仮想テーブルを定義した情報の例を示す図である。仮想テーブルの定義情報Xは、アプリケーションサーバ20の記憶装置に格納されており、検索要求部23によって、検索要求とともにデータベースサーバ30に送られる。図3に示すように、検索対象x1が「郵便番号」である場合に、仮想テーブルYの各レコードの「検索項目」のフィールドには、データテーブル41の郵便番号の「最初の3桁」のフィールドa、郵便番号の「最後の4桁」のフィールドb、郵便番号に対応する「住所」のフィールドc、及び郵便番号に対応する住所の「読み仮名」のフィールドdのデータが含まれるように、仮想テーブルYが定義される。
<3-2. Virtual table definition information X>
FIG. 3 is a diagram illustrating an example of information defining a virtual table in the first embodiment. The definition information X of the virtual table is stored in the storage device of the application server 20, and is sent to the database server 30 by the search request unit 23 together with the search request. As shown in FIG. 3, when the search target x1 is “zip code”, the “search item” field of each record of the virtual table Y contains the “first three digits” of the zip code of the data table 41. The data of the field a, the “last 4 digits” field b of the postal code, the “address” field c corresponding to the postal code, and the “reading kana” field d of the address corresponding to the postal code are included. A virtual table Y is defined.

また、定義情報Xにおいて、仮想テーブルYの各レコードの「表示項目」のフィールドには、データテーブル41のフィールドa、b及びcのデータが含まれるように、仮想テーブルYが定義される。また、仮想テーブルYの「戻り値」のフィールドには、データテーブル41のフィールドa及びbのデータが含まれるように、仮想テーブルYが定義される。また、仮想テーブルYの「情報」のフィールドには、「住所」という文字列が含まれるように、仮想テーブルYが定義される。   In the definition information X, the virtual table Y is defined such that the “display item” field of each record of the virtual table Y includes the data of the fields a, b, and c of the data table 41. The virtual table Y is defined so that the “return value” field of the virtual table Y includes the data of the fields a and b of the data table 41. The virtual table Y is defined so that the “information” field of the virtual table Y includes a character string “address”.

<3−3.仮想テーブルY>
図4は、第1の実施例において、仮想テーブルの例を示す図である。仮想テーブルYの各レコードは、図2に示したデータテーブル41の各レコードに対応している。仮想テーブルYの各レコードは、図3に示した仮想テーブルの定義情報Xに従い、「検索項目」のフィールドY1と、「表示項目」のフィールドY2と、「戻り値」のフィールドY3と、「情報」のフィールドY4とを含んでいる。
<3-3. Virtual table Y>
FIG. 4 is a diagram illustrating an example of a virtual table in the first embodiment. Each record of the virtual table Y corresponds to each record of the data table 41 shown in FIG. Each record of the virtual table Y is in accordance with the definition information X of the virtual table shown in FIG. 3, the “search item” field Y1, the “display item” field Y2, the “return value” field Y3, and the “information” "Field Y4".

「検索項目」のフィールドY1には、データテーブル41の郵便番号の「最初の3桁」、郵便番号の「最後の4桁」、郵便番号に対応する「住所」、及び郵便番号に対応する住所の「読み仮名」が、互いにハイフン又はスペース等の区切り文字で区切られた文字列のデータとして含まれている。   The “search item” field Y1 includes the “first three digits” of the zip code in the data table 41, the “last four digits” of the zip code, the “address” corresponding to the zip code, and the address corresponding to the zip code. Are included as character string data delimited by a delimiter such as a hyphen or space.

「表示項目」のフィールドY2には、データテーブル41の郵便番号の「最初の3桁」、郵便番号の「最後の4桁」、及び郵便番号に対応する「住所」が、互いにハイフン又はスペース等の区切り文字で区切られた文字列のデータとして含まれている。
「戻り値」のフィールドY3には、データテーブル41の郵便番号の「最初の3桁」及び郵便番号の「最後の4桁」が含まれている。
「情報」のフィールドY4には、「住所」という文字列が含まれている。
In the “display item” field Y2, the “first three digits” of the zip code in the data table 41, the “last four digits” of the zip code, and the “address” corresponding to the zip code are hyphenated or spaces, etc. It is included as character string data separated by the delimiter.
The “return value” field Y3 includes the “first three digits” of the zip code in the data table 41 and the “last four digits” of the zip code.
The “information” field Y4 includes a character string “address”.

<3−4.出力テーブルZ>
図5は、第1の実施例において、検索結果の例を示す図である。
図5(A)は、出力テーブルZの例を示している。図5(A)に示す出力テーブルZは、検索部34が、検索キーWを「札幌 十条」とし、仮想テーブルYの「検索項目」のフィールドY1を検索した結果を示している。
<3-4. Output table Z>
FIG. 5 is a diagram illustrating an example of a search result in the first embodiment.
FIG. 5A shows an example of the output table Z. The output table Z shown in FIG. 5A shows a result of the search unit 34 searching the field Y1 of the “search item” of the virtual table Y with the search key W as “Sapporo Jujo”.

図5(A)に示すように、出力テーブルZにおいては、図4に示す仮想テーブルYのうち「検索項目」のフィールドY1に「札幌」「十条」という2つの検索キーWが含まれるレコードすべて(第2及び第12レコード)を抽出している。出力テーブルZの各レコードは、仮想テーブルYのフィールドY2に相当する「表示項目」のフィールドZ2と、仮想テーブルYのフィールドY3に相当する「戻り値」のフィールドZ3と、仮想テーブルYのフィールドY4に相当する「情報」のフィールドZ4とを含んでいる。なお、出力テーブルZには、仮想テーブルYのフィールドY1に相当する「検索項目」のフィールドは含まれていなくてもよい。出力テーブルZは、検索結果出力部35からアプリケーションサーバ20に出力される。   As shown in FIG. 5A, in the output table Z, in the virtual table Y shown in FIG. 4, all records in which two search keys W “Sapporo” and “Jujo” are included in the “search item” field Y1. (Second and twelfth records) are extracted. Each record of the output table Z includes a “display item” field Z2 corresponding to the field Y2 of the virtual table Y, a “return value” field Z3 corresponding to the field Y3 of the virtual table Y, and a field Y4 of the virtual table Y. And an “information” field Z4 corresponding to. The output table Z may not include the “search item” field corresponding to the field Y1 of the virtual table Y. The output table Z is output from the search result output unit 35 to the application server 20.

<3−5.検索画面>
図5(B)及び図5(C)は、クライアント端末10の表示装置17に出力される検索画面の一部を示している。図5(B)の画面171に示すように、検索対象x1「郵便番号」の表示位置の右側に表示された入力欄に、オペレータが検索キーWとして「札幌 十条」と入力すると、住所に「札幌」及び「十条」の文字列を含む郵便番号及び住所の一覧が表示される。
<3-5. Search screen>
FIGS. 5B and 5C show a part of the search screen output to the display device 17 of the client terminal 10. As shown in the screen 171 of FIG. 5B, when the operator inputs “Sapporo Jujo” as the search key W in the input field displayed on the right side of the display position of the search target x1 “zip code”, the address “ A list of postal codes and addresses including the character strings “Sapporo” and “Jujo” is displayed.

具体的には、入力装置11を用いて入力された検索キーW「札幌 十条」の情報と、その画面における入力位置からクライアント端末10が判定した検索対象x1(郵便番号)の情報とが、アプリケーションサーバ20に送られる(S1)。そして、アプリケーションサーバ20から、検索キーWの情報と、検索対象x1に対応付けられた定義情報Xの情報とが、データベースサーバ30に送られる(S2)。さらに、データベースサーバ30において、検索キーWを用いて仮想テーブルYの検索が行われる(S3)。データベースサーバ30において作成された出力テーブルZはアプリケーションサーバ20に出力され(S4)、出力テーブルZの各レコードに含まれる「表示項目」のフィールドZ2のデータが、アプリケーションサーバ20からクライアント端末10に送られ(S5)、画面171に表示される。   Specifically, the information of the search key W “Sapporo Jujo” input using the input device 11 and the information of the search target x1 (zip code) determined by the client terminal 10 from the input position on the screen are the application. It is sent to the server 20 (S1). Then, the information of the search key W and the information of the definition information X associated with the search target x1 are sent from the application server 20 to the database server 30 (S2). Furthermore, the virtual server Y is searched using the search key W in the database server 30 (S3). The output table Z created in the database server 30 is output to the application server 20 (S4), and the data in the “display item” field Z2 included in each record of the output table Z is sent from the application server 20 to the client terminal 10. (S5) and displayed on the screen 171.

併せて、出力テーブルZの「情報」のフィールドZ4のデータ(住所)が画面171に表示されるようにすれば、オペレータは、「住所」を入力欄に入力すれば検索結果が絞り込めることを理解できる。
なお、画面171の入力欄に何も入力しなくても、入力欄にカーソルを移動させただけで、上述のS1〜S5に従って「検索キーなし」の検索を行い、「情報」のフィールドZ4のデータが表示されるようにしてもよい。
At the same time, if the data (address) in the field Z4 of the “information” of the output table Z is displayed on the screen 171, the operator can narrow down the search result by inputting “address” in the input field. Understandable.
Even if nothing is input in the input field of the screen 171, the “no search key” search is performed according to the above-described S 1 to S 5 just by moving the cursor to the input field, and the “information” field Z 4 is displayed. Data may be displayed.

オペレータは、画面171に表示された「表示項目」のフィールドZ2のデータの中から、入力したい郵便番号をマウスポインタ111で選択することができる。図5(B)に示すように、「001-0010 北海道札幌市北区北十条西」がマウスポインタ111で選択された場合には、図5(C)に示す画面172に遷移する。画面172において、郵便番号の入力欄には、図5(B)において選択されたレコードに含まれる「戻り値」のフィールドZ3のデータ(すなわち、「0010010」)が表示される。   The operator can use the mouse pointer 111 to select a postal code to be input from the data in the field “Z2” of the “display item” displayed on the screen 171. As shown in FIG. 5B, when “001-0010 Hokkaido Kita-ku Kitajojo Nishi” is selected with the mouse pointer 111, the screen transitions to a screen 172 shown in FIG. On the screen 172, the data of the “return value” field Z 3 included in the record selected in FIG. 5B (that is, “0010010”) is displayed in the postal code input field.

具体的には、「001-0010 北海道札幌市北区北十条西」がマウスポインタ111で選択されたことを示す情報がアプリケーションサーバ20に送られる。そして、アプリケーションサーバ20に存在する出力テーブルZの該当レコードのうち、「戻り値」のフィールドZ3のデータがクライアント端末10に送られ、画面172に表示される。
以上のようにして、郵便番号が検索され、クライアント端末10の表示装置17に出力される。
Specifically, information indicating that “001-0010 Hokkaido Kita-ku Kitajojo Nishi” has been selected with the mouse pointer 111 is sent to the application server 20. Then, among the corresponding records of the output table Z existing in the application server 20, the data of the “return value” field Z 3 is sent to the client terminal 10 and displayed on the screen 172.
As described above, the zip code is retrieved and output to the display device 17 of the client terminal 10.

<4.第2の実施例>
次に、図6〜図9を参照しながら第2の実施例について説明する。第2の実施例は、オペレータが企業の担当者コードを入力するための入力支援に用いられる検索機能に関係している。第2の実施例は、担当者コードの一部、担当者名の一部、或いは担当者の所属部門名の一部を、オペレータがタイプするだけで、該当する担当者コードの一覧を出力するものである。
<4. Second Embodiment>
Next, a second embodiment will be described with reference to FIGS. The second embodiment relates to a search function used for input support for an operator to input a person in charge code of a company. In the second embodiment, a part of the person-in-charge code, part of the person-in-charge name, or part of the department name of the person-in-charge is simply typed by the operator, and a list of relevant person-in-charge codes is output Is.

<4−1.データテーブル42、43>
図6は、第2の実施例において、記憶装置40に格納されたデータテーブルのデータ構成例を示す図である。第2の実施例においては、記憶装置40に格納された2つのデータテーブル42及び43が用いられる。
<4-1. Data Table 42, 43>
FIG. 6 is a diagram illustrating a data configuration example of a data table stored in the storage device 40 in the second embodiment. In the second embodiment, two data tables 42 and 43 stored in the storage device 40 are used.

図6(A)に示す第1のデータテーブル42は担当者のデータテーブルであり、1つのレコードにつき1人の担当者のデータが格納されている。第1のデータテーブル42の各レコードは、「会社コード」を格納するフィールドaと、「担当者コード」を格納するフィールドbと、「担当者名」を格納するフィールドcと、「部門コード」を格納するフィールドdと、を有する。   A first data table 42 shown in FIG. 6A is a data table for a person in charge, and stores data for one person in charge per record. Each record of the first data table 42 includes a field a for storing “company code”, a field b for storing “person in charge code”, a field c for storing “person in charge name”, and a “department code”. Field d for storing.

図6(B)に示す第2のデータテーブル43は会社の部門のデータテーブルであり、1つのレコードにつき1つの部門のデータが格納されている。第2のデータテーブル43の各レコードは、「会社コード」を格納するフィールドeと、「部門コード」を格納するフィールドfと、「部門名」を格納するフィールドgと、を有する。   A second data table 43 shown in FIG. 6B is a company department data table, and stores data of one department per record. Each record of the second data table 43 has a field e for storing “company code”, a field f for storing “department code”, and a field g for storing “department name”.

第2の実施例においては、上述の2つのデータテーブル42及び43を利用して、検索対象である「担当者コード」を得るために「部門名」等を検索キーとした検索ができるように、検索システムを構成する。   In the second embodiment, the above-described two data tables 42 and 43 can be used to perform a search using “department name” or the like as a search key in order to obtain a “person in charge code” as a search target. Configure the search system.

<4−2.仮想テーブルの定義情報X>
図7は、第2の実施例において、仮想テーブルを定義した情報の例を示す図である。仮想テーブルの定義情報Xは、アプリケーションサーバ20の記憶装置に格納されており、検索要求部23によって、検索要求とともにデータベースサーバ30に送られる。図7に示すように、検索対象x1が「担当者コード」である場合に、仮想テーブルYの各レコードの「検索項目」のフィールドには、第1のデータテーブル42の「担当者コード」のフィールドb及び「担当者名」のフィールドcのデータと、第2のデータテーブル43の「部門名」のフィールドgのデータとが含まれるように、仮想テーブルYが定義される。
<4-2. Virtual table definition information X>
FIG. 7 is a diagram illustrating an example of information defining a virtual table in the second embodiment. The definition information X of the virtual table is stored in the storage device of the application server 20, and is sent to the database server 30 by the search request unit 23 together with the search request. As shown in FIG. 7, when the search target x 1 is “person in charge code”, the “search item” field of each record in the virtual table Y contains “person in charge code” in the first data table 42. The virtual table Y is defined so that the data in the field b and the field c of the “person in charge name” and the data in the field g of the “department name” in the second data table 43 are included.

さらに、第1のデータテーブル42と第2のデータテーブル43とを結合するにあたって、以下の規則が定義される。すなわち、第1のデータテーブル42の1つのレコードに含まれる「部門コード」(フィールドd)のデータに、第2のデータテーブル43のいずれかのレコードに含まれる「部門コード」(フィールドf)のデータが一致する場合に、第1のデータテーブル42の当該レコードに、第2のデータテーブル43の当該レコードを関連付ける。   Furthermore, the following rules are defined when combining the first data table 42 and the second data table 43. That is, the “department code” (field f) included in one of the records of the second data table 43 is added to the data of “department code” (field d) included in one record of the first data table 42. When the data match, the record of the second data table 43 is associated with the record of the first data table 42.

また、定義情報Xにおいて、仮想テーブルYの各レコードの「表示項目」のフィールドには、第1のデータテーブル42のフィールドb及びcのデータが含まれるように、仮想テーブルYが定義される。また、仮想テーブルYの「戻り値」のフィールドには、第1のデータテーブル42のフィールドbのデータが含まれるように、仮想テーブルYが定義される。また、仮想テーブルYの「情報」のフィールドには、「担当者CD、担当者名、部門名」という文字列が含まれるように、仮想テーブルYが定義される。   In the definition information X, the virtual table Y is defined such that the “display item” field of each record of the virtual table Y includes the data of the fields b and c of the first data table 42. The virtual table Y is defined so that the “return value” field of the virtual table Y includes the data of the field b of the first data table 42. Further, the virtual table Y is defined so that the “information” field of the virtual table Y includes a character string “person in charge CD, person in charge name, department name”.

<4−3.仮想テーブルY>
図8は、第2の実施例において、仮想テーブルの例を示す図である。仮想テーブルYの各レコードは、図6(A)に示した第1のデータテーブル42の各レコードに対応している。仮想テーブルYの各レコードは、図7に示した仮想テーブルの定義情報Xに従い、「検索項目」のフィールドY1と、「表示項目」のフィールドY2と、「戻り値」のフィールドY3と、「情報」のフィールドY4とを含んでいる。
<4-3. Virtual table Y>
FIG. 8 is a diagram illustrating an example of a virtual table in the second embodiment. Each record of the virtual table Y corresponds to each record of the first data table 42 shown in FIG. Each record of the virtual table Y is in accordance with the definition information X of the virtual table shown in FIG. 7, the “search item” field Y 1, the “display item” field Y 2, the “return value” field Y 3, and the “information” "Field Y4".

「検索項目」のフィールドY1には、第1のデータテーブル42の「担当者コード」及び「担当者名」と、第2のデータテーブル43の「部門名」とが、互いにスペース等の区切り文字で区切られた文字列のデータとして含まれている。   In the “search item” field Y1, the “person in charge code” and “person in charge name” of the first data table 42 and the “department name” in the second data table 43 are separated from each other by a delimiter such as a space. It is included as character string data separated by.

例えば、第1のデータテーブル42の第1レコード(TAN344 一嶺俊明)には、部門コード「001」が格納されているので、第2のデータテーブル43において部門コード「001」が格納された第1レコード(マーケティンググループ)に関連付けられる。その結果、仮想テーブルYの第1レコードの「検索項目」のフィールドY1には、「TAN344 一嶺俊明 マーケティンググループ」という文字列が含まれる。第2レコード以下においても、それぞれ、部門コードの一致によって関連付けられた第1のデータテーブル42及び第2のデータテーブル43の各レコードのデータが含まれる。   For example, since the department code “001” is stored in the first record (TAN344 Toshiaki Ichijo) of the first data table 42, the first record in which the department code “001” is stored in the second data table 43 is stored. Associated with one record (marketing group). As a result, the “search item” field Y1 of the first record of the virtual table Y includes the character string “TAN344 Toshiaki Ichijo Marketing Group”. Even in the second record and below, the data of each record of the first data table 42 and the second data table 43 that are associated by matching the department code is included.

「表示項目」のフィールドY2には、第1のデータテーブル42の「担当者コード」及び「担当者名」が、互いにスペース等の区切り文字で区切られた文字列のデータとして含まれている。
「戻り値」のフィールドY3には、第1のデータテーブル42の「担当者コード」が含まれている。
「情報」のフィールドY4には、「担当者CD、担当者名、部門名」という文字列が含まれている。
The “display item” field Y2 includes “person in charge code” and “person in charge name” of the first data table 42 as character string data separated from each other by a delimiter such as a space.
The “return value” field Y3 includes the “person in charge code” of the first data table 42.
The “information” field Y4 includes a character string “person in charge CD, person in charge name, department name”.

<4−4.出力テーブルZ>
図9は、第2の実施例において、検索結果の例を示す図である。
図9(A)は、出力テーブルZの例を示している。図9(A)に示す出力テーブルZは、検索部34が、検索キーWを「マーケティング」とし、仮想テーブルYの「検索項目」のフィールドY1を検索した結果を示している。
<4-4. Output table Z>
FIG. 9 is a diagram illustrating an example of search results in the second embodiment.
FIG. 9A shows an example of the output table Z. The output table Z shown in FIG. 9A shows a result of the search unit 34 searching the field Y1 of the “search item” of the virtual table Y with the search key W as “marketing”.

図9(A)に示すように、出力テーブルZにおいては、図8に示す仮想テーブルYのうち「検索項目」のフィールドY1に「マーケティング」という検索キーWが含まれるレコードすべて(第1、第2、第3及び第7レコード)を抽出している。出力テーブルZの各レコードは、仮想テーブルYのフィールドY2に相当する「表示項目」のフィールドZ2と、仮想テーブルYのフィールドY3に相当する「戻り値」のフィールドZ3と、仮想テーブルYのフィールドY4に相当する「情報」のフィールドZ4とを含んでいる。なお、出力テーブルZには、仮想テーブルYのフィールドY1に相当する「検索項目」のフィールドは含まれていなくてもよい。出力テーブルZは、検索結果出力部35からアプリケーションサーバ20に出力される。   As shown in FIG. 9A, in the output table Z, all records (first and first) in which the search key W “marketing” is included in the field Y1 of “search item” in the virtual table Y shown in FIG. 2, 3rd and 7th records) are extracted. Each record of the output table Z includes a “display item” field Z2 corresponding to the field Y2 of the virtual table Y, a “return value” field Z3 corresponding to the field Y3 of the virtual table Y, and a field Y4 of the virtual table Y. And an “information” field Z4 corresponding to. The output table Z may not include the “search item” field corresponding to the field Y1 of the virtual table Y. The output table Z is output from the search result output unit 35 to the application server 20.

<4−5.検索画面>
図9(B)及び図9(C)は、クライアント端末10の表示装置17に出力される検索画面の一部を示している。図9(B)の画面171に示すように、検索対象x1「担当者コード」の表示位置の右側に表示された入力欄に、オペレータが検索キーWとして「マーケティング」と入力すると、部門名に「マーケティング」の文字列を含む「担当者コード」及び「担当者名」の一覧が表示される。
<4-5. Search screen>
FIGS. 9B and 9C show a part of the search screen output to the display device 17 of the client terminal 10. As shown in the screen 171 of FIG. 9B, when the operator inputs “marketing” as the search key W in the input field displayed on the right side of the display position of the search target x1 “person in charge code”, the department name is displayed. A list of “person in charge code” and “person in charge name” including the character string “marketing” is displayed.

具体的には、入力装置11を用いて入力された検索キーW「マーケティング」の情報と、その画面における入力位置からクライアント端末10が判定した検索対象x1(担当者コード)の情報とが、アプリケーションサーバ20に送られる(S1)。そして、アプリケーションサーバ20から、検索キーWの情報と、検索対象x1に対応付けられた定義情報Xの情報とが、データベースサーバ30に送られる(S2)。さらに、データベースサーバ30において、検索キーWを用いて仮想テーブルYの検索が行われる(S3)。データベースサーバ30において作成された出力テーブルZはアプリケーションサーバ20に出力され(S4)、出力テーブルZの各レコードに含まれる「表示項目」のフィールドZ2のデータが、アプリケーションサーバ20からクライアント端末10に送られ(S5)、画面171に表示される。   Specifically, the information of the search key W “marketing” input using the input device 11 and the information of the search target x1 (person in charge code) determined by the client terminal 10 from the input position on the screen are the application. It is sent to the server 20 (S1). Then, the information of the search key W and the information of the definition information X associated with the search target x1 are sent from the application server 20 to the database server 30 (S2). Furthermore, the virtual server Y is searched using the search key W in the database server 30 (S3). The output table Z created in the database server 30 is output to the application server 20 (S4), and the data in the “display item” field Z2 included in each record of the output table Z is sent from the application server 20 to the client terminal 10. (S5) and displayed on the screen 171.

併せて、出力テーブルZの「情報」のフィールドZ4のデータ(担当者コード、担当者名、部門名)が画面171に表示されるようにすれば、オペレータは、「担当者コード、担当者名、部門名」のいずれかを入力欄に入力すれば検索結果が絞り込めることを理解できる。
なお、画面171の入力欄に何も入力しなくても、入力欄にカーソルを移動させただけで、上述のS1〜S5に従って「検索キーなし」の検索を行い、「情報」のフィールドZ4のデータが表示されるようにしてもよい。
At the same time, if the data (in charge code, name of the person in charge, department name) in the “information” field Z4 of the output table Z is displayed on the screen 171, the operator can enter the “in charge code, name of the person in charge”. You can understand that search results can be narrowed down by entering any of the “department names” into the input field.
Even if nothing is input in the input field of the screen 171, the “no search key” search is performed according to the above-described S 1 to S 5 just by moving the cursor to the input field, and the “information” field Z 4 is displayed. Data may be displayed.

オペレータは、画面171に表示された「表示項目」のフィールドZ2のデータの中から、入力したい担当者名をマウスポインタ111で選択することができる。図9(B)に示すように、「TAN349 三村紗希」がマウスポインタ111で選択された場合には、図9(C)に示す画面172に遷移する。画面172において、「担当者コード」の入力欄には、図9(B)において選択されたレコードに含まれる「戻り値」のフィールドZ3のデータ(すなわち、「TAN349 三村紗希」の担当者コード)が表示される。   The operator can select the name of the person in charge to input from the data in the field “Z2” of “Display Item” displayed on the screen 171 with the mouse pointer 111. As shown in FIG. 9B, when “TAN349 Yuki Mimura” is selected with the mouse pointer 111, the screen changes to a screen 172 shown in FIG. 9C. On the screen 172, in the input field of “person in charge code”, the data in the “return value” field Z3 included in the record selected in FIG. 9B (that is, the person in charge code of “TAN349 Yuki Mimura”) Is displayed.

具体的には、「TAN349 三村紗希」がマウスポインタ111で選択されたことを示す情報がアプリケーションサーバ20に送られる。そして、アプリケーションサーバ20に存在する出力テーブルZの該当レコードのうち、「戻り値」のフィールドZ3のデータがクライアント端末10に送られ、画面172に表示される。
以上のようにして、担当者コードが検索され、クライアント端末10の表示装置17に出力される。
Specifically, information indicating that “TAN349 Yuki Mimura” has been selected with the mouse pointer 111 is sent to the application server 20. Then, among the corresponding records of the output table Z existing in the application server 20, the data of the “return value” field Z 3 is sent to the client terminal 10 and displayed on the screen 172.
As described above, the person-in-charge code is retrieved and output to the display device 17 of the client terminal 10.

<5.実施形態による効果>
本実施形態によれば、データテーブルの複数のフィールドb、c等のデータを仮想テーブルYの1つのフィールドY1(検索項目)が含むように、仮想テーブルYが定義される。従って、仮想テーブルYの1つのフィールドY1を検索すれば、データテーブルの複数のフィールドb、c等を検索することができる。そして、データテーブルの検索しようとするフィールドb、c等を増減したい場合には、定義情報Xにおいて仮想テーブルYの1つのフィールドY1の定義を変更するだけで済む。
<5. Effects according to the embodiment>
According to the present embodiment, the virtual table Y is defined so that one field Y1 (search item) of the virtual table Y includes data such as a plurality of fields b and c of the data table. Therefore, if one field Y1 of the virtual table Y is searched, a plurality of fields b, c, etc. of the data table can be searched. If it is desired to increase or decrease the fields b, c, etc. to be searched in the data table, it is only necessary to change the definition of one field Y1 of the virtual table Y in the definition information X.

また、本実施形態によれば、仮想テーブルYにおいて、上記1つのフィールドY1とは別に、第2のフィールドY2(表示項目)を定義し、検索結果として抽出されたレコードから、この第2のフィールドY2のデータ(出力テーブルZのフィールドZ2のデータ)を出力する。このように、検索項目とは別に、検索結果の表示項目を設定できる。このような「表示項目」を変更したい場合も、同様に定義情報Xを変更するだけで済む。   Further, according to the present embodiment, in the virtual table Y, the second field Y2 (display item) is defined separately from the one field Y1, and the second field is extracted from the record extracted as the search result. Data of Y2 (data of field Z2 of output table Z) is output. In this way, display items for search results can be set separately from the search items. When it is desired to change such a “display item”, it is only necessary to change the definition information X in the same manner.

また、本実施形態によれば、仮想テーブルYにおいて、上記1つのフィールドY1及び第2のフィールドY2とは別に、第3のフィールドY3(戻り値)を定義する。そして、検索結果として第2のフィールドY2のデータが表示された複数のレコードの中から、特定のレコードが選択された場合に、当該レコードの第3のフィールドY3のデータ(出力テーブルZのフィールドZ3のデータ)をさらに出力する。このように、検索項目及び表示項目とは別に、戻り値を設定できる。このような「戻り値」を変更したい場合も、同様に定義情報Xを変更するだけで済む。   Further, according to the present embodiment, in the virtual table Y, the third field Y3 (return value) is defined separately from the one field Y1 and the second field Y2. When a specific record is selected from a plurality of records in which the data of the second field Y2 is displayed as a search result, the data of the third field Y3 of the record (the field Z3 of the output table Z) Data) is further output. Thus, a return value can be set separately from the search item and the display item. When it is desired to change such a “return value”, it is only necessary to change the definition information X in the same manner.

従って、本実施形態によれば、ユーザの多様なニーズにも、容易に対応することができる。   Therefore, according to the present embodiment, it is possible to easily cope with various needs of users.

10…クライアント端末、11…入力装置、12…検索要求部、16…検索結果受信部、17…表示装置、20…アプリケーションサーバ、22…検索要求受付部、23…検索要求部、25…検索結果受信部、26…検索結果出力部、30…データベースサーバ、33…検索要求受付部、34…検索部、35…検索結果出力部、40…記憶装置、41、42、43…データテーブル、111…マウスポインタ、171、172…画面、W…検索キー、x1…検索対象、X…定義情報、Y…仮想テーブル、Z…出力テーブル、Z2…表示項目、Z3…戻り値、Z4…情報 DESCRIPTION OF SYMBOLS 10 ... Client terminal, 11 ... Input device, 12 ... Search request part, 16 ... Search result receiving part, 17 ... Display apparatus, 20 ... Application server, 22 ... Search request reception part, 23 ... Search request part, 25 ... Search result Receiving unit, 26 ... search result output unit, 30 ... database server, 33 ... search request receiving unit, 34 ... search unit, 35 ... search result output unit, 40 ... storage device, 41, 42, 43 ... data table, 111 ... Mouse pointer, 171, 172 ... screen, W ... search key, x1 ... search target, X ... definition information, Y ... virtual table, Z ... output table, Z2 ... display item, Z3 ... return value, Z4 ... information

Claims (5)

記憶装置に格納されたデータテーブルにアクセス可能な検索システムであって、
検索キー及び検索対象情報を含む検索要求を受け付ける受付手段と、
仮想テーブルの各レコードが、前記データテーブルの各レコードに含まれている複数のフィールドのデータを検索項目として含む第1のフィールドと、前記データテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを表示項目として含む第2のフィールドと、前記データテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを戻り値として含む第3のフィールドとを含むように前記仮想テーブルを定義する仮想テーブル定義情報を検索対象情報に対応付けて格納する格納手段と、
前記受付手段が受け付けた検索キーを用いて、前記受付手段が受け付けた検索対象情報に対応付けられた仮想テーブル定義情報に従って定義される仮想テーブルにおいて複数のレコードに含まれている第1のフィールドのデータの検索を実行する検索手段と、
前記検索の結果として抽出された少なくとも1つのレコードに含まれている第2のフィールドのデータを出力すると共に、前記検索の結果として複数のレコードが抽出されて、出力された複数のレコードに係るデータの内から1つのレコードに係るデータが選択された場合に、当該1つのレコードに含まれている第3のフィールドのデータをさらに出力する出力手段と、
を具備する検索システム。
A search system capable of accessing a data table stored in a storage device,
Receiving means for receiving a search request including a search key and search target information;
Each record of the virtual table includes a first field including data of a plurality of fields included in each record of the data table as a search item, and at least one field included in each record of the data table. A virtual that defines the virtual table to include a second field that includes data as a display item, and a third field that includes at least one field of data included in each record of the data table as a return value. Storage means for storing table definition information in association with search target information;
The first field included in the plurality of records in the virtual table defined in accordance with the virtual table definition information associated with the search target information received by the receiving unit using the search key received by the receiving unit. A search means for performing a search for data;
Output the data of the second field included in at least one record extracted as a result of the search, and extract a plurality of records as a result of the search, and output data related to the plurality of records Output means for further outputting the data of the third field included in the one record when data relating to one record is selected from
A search system comprising:
前記仮想テーブルの各レコードが、検索結果を絞り込むために入力すべき検索キーに関する情報を表すデータを含む第4のフィールドをさらに含み、
前記受付手段が、検索キーを含まない検索要求を受け付けた場合に、前記出力手段が、第4のフィールドのデータを出力することにより、検索キーを入力するために用いられる表示装置に第4のフィールドのデータによって表される情報を表示させる、
請求項1記載の検索システム。
Each record of the virtual table further includes a fourth field including data representing information on a search key to be input to narrow down the search results;
When the accepting means accepts a search request that does not include a search key, the output means outputs the fourth field data to the display device used for inputting the search key. Display information represented by field data,
Claim 1 Symbol placement search system.
記憶装置に格納された第1のデータテーブル及び第2のデータテーブルにアクセス可能な検索システムであって、
検索キー及び検索対象情報を含む検索要求を受け付ける受付手段と、
仮想テーブルの各レコードが、前記第1のデータテーブルの各レコードに含まれている少なくとも1つのフィールドのデータと、前記第1のデータテーブルの各レコードに関連付けられた前記第2のデータテーブルのレコードに含まれている少なくとも1つのフィールドのデータとを検索項目として含む第1のフィールドと、前記第1又は第2のデータテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを表示項目として含む第2のフィールドと、前記第1又は第2のデータテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを戻り値として含む第3のフィールドとを含むように前記仮想テーブルを定義する仮想テーブル定義情報を検索対象情報に対応付けて格納する格納手段と、
前記受付手段が受け付けた検索キーを用いて、前記受付手段が受け付けた検索対象情報に対応付けられた仮想テーブル定義情報に従って定義される仮想テーブルにおいて複数のレコードに含まれている第1のフィールドのデータの検索を実行する検索手段と、
前記検索の結果として抽出された少なくとも1つのレコードに含まれている第2のフィールドのデータを出力すると共に、前記検索の結果として複数のレコードが抽出されて、出力された複数のレコードに係るデータの内から1つのレコードに係るデータが選択された場合に、当該1つのレコードに含まれている第3のフィールドのデータをさらに出力する出力手段と、
を具備する検索システム。
A search system capable of accessing a first data table and a second data table stored in a storage device,
Receiving means for receiving a search request including a search key and search target information;
Each record of the virtual table includes at least one field data included in each record of the first data table and a record of the second data table associated with each record of the first data table A first field including at least one field data included in the search item, and at least one field data included in each record of the first or second data table as display items. The virtual table is defined to include a second field including a third field including, as a return value, data of at least one field included in each record of the first or second data table. Storage means for storing virtual table definition information in association with search target information;
The first field included in the plurality of records in the virtual table defined in accordance with the virtual table definition information associated with the search target information received by the receiving unit using the search key received by the receiving unit. A search means for performing a search for data;
Output the data of the second field included in at least one record extracted as a result of the search, and extract a plurality of records as a result of the search, and output data related to the plurality of records Output means for further outputting the data of the third field included in the one record when data relating to one record is selected from
A search system comprising:
記憶装置に格納されたデータテーブルにアクセス可能な検索システムにおいて検索を行うための検索方法であって、
検索キー及び検索対象情報を含む検索要求を受け付けるステップ(a)と、
仮想テーブルの各レコードが、前記データテーブルの各レコードに含まれている複数のフィールドのデータを検索項目として含む第1のフィールドと、前記データテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを表示項目として含む第2のフィールドと、前記データテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを戻り値として含む第3のフィールドとを含むように前記仮想テーブルを定義する仮想テーブル定義情報を検索対象情報に対応付けて格納する格納手段から、ステップ(a)において受け付けた検索対象情報に対応付けられた仮想テーブル定義情報を取得するステップ(b)と、
ステップ(a)において受け付けた検索キーを用いて、ステップ(b)において取得された仮想テーブル定義情報に従って定義される仮想テーブルにおいて複数のレコードに含まれている第1のフィールドのデータの検索を実行するステップ(c)と、
前記検索の結果として抽出された少なくとも1つのレコードに含まれている第2のフィールドのデータを出力するステップ(d)と、
前記検索の結果として複数のレコードが抽出されて、ステップ(d)において出力された複数のレコードに係るデータの内から1つのレコードに係るデータが選択された場合に、当該1つのレコードに含まれている第3のフィールドのデータをさらに出力するステップ(e)と、
を具備する検索方法。
A search method for performing a search in a search system accessible to a data table stored in a storage device,
Receiving a search request including a search key and search target information (a);
Each record of the virtual table includes a first field including data of a plurality of fields included in each record of the data table as a search item, and at least one field included in each record of the data table. A virtual that defines the virtual table to include a second field that includes data as a display item, and a third field that includes at least one field of data included in each record of the data table as a return value. (B) acquiring virtual table definition information associated with the search target information received in step (a) from storage means for storing the table definition information in association with the search target information;
Using the search key received in step (a), search for data of the first field included in the plurality of records in the virtual table defined according to the virtual table definition information acquired in step (b). Performing step (c);
Outputting the data of the second field contained in at least one record extracted as a result of the search;
When a plurality of records are extracted as a result of the search and data related to one record is selected from the data related to the plurality of records output in step (d), the data is included in the one record. Outputting the third field data further (e);
A search method comprising:
記憶装置に格納されたデータテーブルにアクセス可能な検索システムにおいて検索を行うための検索プログラムであって、
検索キー及び検索対象情報を含む検索要求を受け付けるステップ(a)と、
仮想テーブルの各レコードが、前記データテーブルの各レコードに含まれている複数のフィールドのデータを検索項目として含む第1のフィールドと、前記データテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを表示項目として含む第2のフィールドと、前記データテーブルの各レコードに含まれている少なくとも1つのフィールドのデータを戻り値として含む第3のフィールドとを含むように前記仮想テーブルを定義する仮想テーブル定義情報を検索対象情報に対応付けて格納する格納手段から、ステップ(a)において受け付けた検索対象情報に対応付けられた仮想テーブル定義情報を取得するステップ(b)と、
ステップ(a)において受け付けた検索キーを用いて、ステップ(b)において取得された仮想テーブル定義情報に従って定義される仮想テーブルにおいて複数のレコードに含まれている第1のフィールドのデータの検索を実行するステップ(c)と、
前記検索の結果として抽出された少なくとも1つのレコードに含まれている第2のフィールドのデータを出力するステップ(d)と、
前記検索の結果として複数のレコードが抽出されて、ステップ(d)において出力された複数のレコードに係るデータの内から1つのレコードに係るデータが選択された場合に、当該1つのレコードに含まれている第3のフィールドのデータをさらに出力するステップ(e)と、
をコンピュータに実行させる検索プログラム。
A search program for performing a search in a search system accessible to a data table stored in a storage device,
Receiving a search request including a search key and search target information (a);
Each record of the virtual table includes a first field including data of a plurality of fields included in each record of the data table as a search item, and at least one field included in each record of the data table. A virtual that defines the virtual table to include a second field that includes data as a display item, and a third field that includes at least one field of data included in each record of the data table as a return value. (B) acquiring virtual table definition information associated with the search target information received in step (a) from storage means for storing the table definition information in association with the search target information;
Using the search key received in step (a), search for data of the first field included in the plurality of records in the virtual table defined according to the virtual table definition information acquired in step (b). Performing step (c);
Outputting the data of the second field contained in at least one record extracted as a result of the search;
When a plurality of records are extracted as a result of the search and data related to one record is selected from the data related to the plurality of records output in step (d), the data is included in the one record. Outputting the third field data further (e);
Search program that causes a computer to execute.
JP2011200704A 2011-09-14 2011-09-14 SEARCH SYSTEM, SEARCH METHOD, AND PROGRAM Active JP5874997B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011200704A JP5874997B2 (en) 2011-09-14 2011-09-14 SEARCH SYSTEM, SEARCH METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011200704A JP5874997B2 (en) 2011-09-14 2011-09-14 SEARCH SYSTEM, SEARCH METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2013061860A JP2013061860A (en) 2013-04-04
JP5874997B2 true JP5874997B2 (en) 2016-03-02

Family

ID=48186466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011200704A Active JP5874997B2 (en) 2011-09-14 2011-09-14 SEARCH SYSTEM, SEARCH METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5874997B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09305611A (en) * 1996-05-14 1997-11-28 N T T Data Tsushin Kk Retrieving device for database
JPH11265395A (en) * 1998-03-18 1999-09-28 Hitachi Ltd Data base access system
JP2003167912A (en) * 2001-11-28 2003-06-13 Aioi Jimu Service:Kk Address code retrieving system and address code retrieving and processing program
US20100299367A1 (en) * 2009-05-20 2010-11-25 Microsoft Corporation Keyword Searching On Database Views

Also Published As

Publication number Publication date
JP2013061860A (en) 2013-04-04

Similar Documents

Publication Publication Date Title
US9037585B2 (en) Method and system for generating prime uniform resource identifiers
JP2006285914A (en) Data retrieval processor and program
JP4846012B2 (en) Business flow search system, business flow search method, and business flow search program
JP6390139B2 (en) Document search device, document search method, program, and document search system
US20110078569A1 (en) Value help user interface system and method
JP5265414B2 (en) Online shopping management device
JP5928344B2 (en) UI (UserInterface) creation support apparatus, UI creation support method, and program
JP5874997B2 (en) SEARCH SYSTEM, SEARCH METHOD, AND PROGRAM
US8954864B1 (en) Contact list integrated with social network
JP4675986B2 (en) Information sharing apparatus and information sharing program
WO2012101700A1 (en) Ui (user interface) creation support device, ui creation support method, and program
CN113779362A (en) Data searching method and device
JP2021039624A (en) Information processing device and information processing system
JP5155351B2 (en) Map data processing apparatus and method
JP5090490B2 (en) Representative notation extraction apparatus, method and program
JP2011128964A (en) Electronic leaflet retrieval device and electronic leaflet retrieval system
JP2016053919A (en) Server device and program
JP6716919B2 (en) INFORMATION EXTRACTION DEVICE, EXTRACTION METHOD, AND EXTRACTION PROGRAM
JP2006228069A (en) Data retrieval system, method and program
JP6455087B2 (en) Form information processing program, form information processing apparatus, and form information processing method
JP6339932B2 (en) Data management apparatus, data management method, and data management program
JP6256079B2 (en) Search program, search method, and search device
JP2012168639A (en) Information processor, method and program
JP7418781B2 (en) Company similarity calculation server and company similarity calculation method
KR101153307B1 (en) Method and System for Providing Landing Page Using Keyword Characteristic

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140909

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150501

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150519

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150629

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150811

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151019

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20151026

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20151222

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160108

R150 Certificate of patent or registration of utility model

Ref document number: 5874997

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250