JPH0736918A - Retrieval result display method - Google Patents

Retrieval result display method

Info

Publication number
JPH0736918A
JPH0736918A JP5175301A JP17530193A JPH0736918A JP H0736918 A JPH0736918 A JP H0736918A JP 5175301 A JP5175301 A JP 5175301A JP 17530193 A JP17530193 A JP 17530193A JP H0736918 A JPH0736918 A JP H0736918A
Authority
JP
Japan
Prior art keywords
order
search result
buffer
retrieval
search
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
JP5175301A
Other languages
Japanese (ja)
Inventor
Yuriyo Shigemori
祐理代 重森
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP5175301A priority Critical patent/JPH0736918A/en
Publication of JPH0736918A publication Critical patent/JPH0736918A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide the retrieval result display method for a data base system which can removes partiality due to the display order of retrieval conditions under the same conditions whose order can not be set. CONSTITUTION:This method has a step 12 wherein data corresponding to a retrieval key are retrieved in a data base 3 when the retrieval key is inputted from a terminal 1A, a step 13 wherein it is checked whether or not there is corresponding data, a step 14 wherein the corresponding data is outputted as a retrieval result to a buffer 4, a step 15 wherein it is decided that the retrieval result are under the same conditions whose order can not be set, a step 16 wherein the display order of retrieval results in the buffer 4 is changed by using a random number when the retrieval result under the same conditions whose order can not be set are decided, and a step 18 wherein the retrieval results are outputted to a terminal in display order after the change.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データベースシステム
における検索結果表示方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a search result display method in a database system.

【0002】[0002]

【従来の技術】従来、データベースシステムで何等かの
検索を行った場合に、その検索結果はあらかじめ決めた
ある条件を満たす順に整列されて序列順に出力されてい
る。しかし、序列設定不能な同一条件の検索結果である
場合は、[アルファベット順]や[あいうえお順]で名
称をソートしたり、データベースに内蔵された[データ
コード順]で出力されている。
2. Description of the Related Art Conventionally, when a database system is searched for something, the search results are arranged in the order of a predetermined condition and output in the order of rank. However, if the search results are of the same condition in which the order cannot be set, the names are sorted by [alphabetical order] or [aiueo order], or are output by [data code order] built in the database.

【0003】[0003]

【発明が解決しようとする課題】従来の技術では、例え
ばデータベースシステムを用いて街の花屋を捜す場合、
[花屋]という検索キーに該当する店名が[アルファベ
ット順]や[あいうえお順]で複数リストアップされ
る。しかし、[花屋]という序列設定不能な同一条件の
検索結果でありながら、表示順が固定であるために、
[A]あるいは[あ]で始まる店名は常に注目を浴びや
すい反面、[Y]あるいは[わ]といった後半の店名は
常に注目度が低くなり、不公平が発生する。このよう
に、同じデータベース登録料を徴収したにもかかわら
ず、序列設定不能な同一条件の検査結果に対して表示順
によって不公平が生じるのは好ましくない。
In the prior art, for example, when searching for a flower shop in a city using a database system,
Multiple store names corresponding to the search key called "florist" are listed in [alphabetical order] or [aiueo order]. However, the search order is fixed, even though the search result is the same condition that "Florist" cannot be ordered.
Store names starting with [A] or [A] are always attracting attention, while the store names in the latter half such as [Y] or [Wa] are always low in attention, causing injustice. In this way, it is not preferable that the display order causes unfairness with respect to inspection results under the same condition in which the order cannot be set, even though the same database registration fee is collected.

【0004】本発明の目的は、上記のような問題点を解
決し、序列設定不能な同一条件の検索結果に対する表示
順による不公平を取り除くことができるデータベースシ
ステムの検索結果表示方法を提供することにある。
An object of the present invention is to solve the above problems and to provide a search result display method for a database system capable of eliminating unfairness due to the display order with respect to search results of the same condition whose order cannot be set. It is in.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、端末からの検索キーの入力を受信するス
テップと、受信した検索キーに該当するデータをデータ
ベース内から検索するステップと、検索した該当データ
を検索結果としてバッファに一時格納するステップと、
前記検索結果が序列設定不能な同一条件のものであるか
否かを判定するステップと、前記検索結果が序列設定不
能な同一条件のものと判定した場合には、前記バッファ
内の検索結果の表示順序を乱数発生手段で発生させた乱
数を使用して変更するステップと、変更後の表示順で前
記検索結果を前記端末に出力するステップとを有するこ
とを特徴とする。
To achieve the above object, the present invention comprises the steps of receiving an input of a search key from a terminal, and searching the database for data corresponding to the received search key. , A step of temporarily storing the retrieved data as a retrieval result in a buffer,
A step of determining whether or not the search results are under the same condition that the order cannot be set, and a display of the search result in the buffer when it is determined that the search result is under the same condition that the order cannot be set It is characterized by including a step of changing the order using a random number generated by a random number generating means, and a step of outputting the search result to the terminal in the changed display order.

【0006】[0006]

【作用】本発明の検索結果表示方法では、端末から検索
キーの入力があったとき、その検索キーに該当するデー
タをデータベース内から検索して該当データを検索結果
としてバッファに出力し、検索結果が序列設定不能な同
一条件のものであると判定した場合にはバッファ内の検
索結果の表示順序を乱数を使用して変更し、その変更後
の表示順で検索結果を端末に出力する。これにより、序
列設定不能な同一条件の検索結果に対する表示順による
不公平を取り除き、同じデータベース登録料を支払った
情報源の利益の公平を保証する。
In the search result display method of the present invention, when the search key is input from the terminal, the data corresponding to the search key is searched from the database and the corresponding data is output to the buffer as the search result. If it is determined that the same order cannot be set, the display order of the search results in the buffer is changed using random numbers, and the search results are output to the terminal in the changed display order. As a result, the unfairness due to the display order for the search results under the same condition in which the order cannot be set is removed, and the fairness of the profit of the information source who paid the same database registration fee is guaranteed.

【0007】[0007]

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

【0008】図1は、本発明の一実施例の検索結果表示
方法を実行するデータベースシステムの概略構成を示
す。図1において1A,1Bおよび1Cはそれぞれ入出
力に使用する端末、2はデータベースシステムのマネー
ジメント制御を行うCPU、(中央演算処理装置)、3
は各種情報を記憶するデータベース、4は検索結果を一
時記憶するバッファであり、複数の端末1A,1B,1
CがCPU2に接続されている。
FIG. 1 shows a schematic configuration of a database system for executing a search result display method according to an embodiment of the present invention. In FIG. 1, 1A, 1B and 1C are terminals used for input / output respectively, 2 is a CPU for management control of a database system, (central processing unit), 3
Is a database for storing various information, 4 is a buffer for temporarily storing search results, and is used for a plurality of terminals 1A, 1B, 1
C is connected to the CPU 2.

【0009】図2は、本発明の一実施例の検索結果表示
方法の処理手順を示す。まず、使用者Aがデータベース
を用いて何等かの検索を行う場合、使用者Aは複数の端
末の中の1つ、例えば端末1Aから検索キーを入力す
る。CPU2は、端末1Aからの検索キーの入力を受信
し(ステップ11)、データベース3を検索して(ステ
ップ12)、上記検索キーに該当する項目があるか否か
をチェックして(ステップ13)、該当項目があれば、
データベース内のその該当データの検索結果を一時保存
するためにバッファ4へ出力する(ステップ14)。
FIG. 2 shows a processing procedure of a search result display method according to an embodiment of the present invention. First, when the user A searches for something using the database, the user A inputs a search key from one of the plurality of terminals, for example, the terminal 1A. The CPU 2 receives the input of the search key from the terminal 1A (step 11), searches the database 3 (step 12), and checks whether or not there is an item corresponding to the search key (step 13). If there are applicable items,
The search result of the corresponding data in the database is output to the buffer 4 for temporary storage (step 14).

【0010】次に、CPU2はバッファ4内の検索結果
データが他の検索結果データに対していずれも序列設定
不能な同一条件のものであるか否かを判定する(ステッ
プ15)。いずれもが序列設定不能な同一条件の検索結
果であると判定した場合には、バッファ4内に格納され
た検索結果データの順を乱数を用いてシャッフルして表
示順を変更する(ステップ16)。その変更後の表示順
で端末1Aに検索結果を出力する(ステップ18)。こ
のようにして、序列設定不能な同一条件の検索結果の表
示順序による不公平を解決することができる。
Next, the CPU 2 determines whether or not the search result data in the buffer 4 has the same condition that the order cannot be set for any other search result data (step 15). When it is determined that the search results have the same condition in which the order cannot be set, the order of the search result data stored in the buffer 4 is shuffled by using a random number to change the display order (step 16). . The search results are output to the terminal 1A in the display order after the change (step 18). In this way, it is possible to solve the unfairness due to the display order of the search results of the same condition in which the order cannot be set.

【0011】尚、本発明実施例の処理シーケンスにおけ
るその他の点は以下のとおりである。即ち、ステップ1
2の検索方法は本発明の範囲外なので、その詳細な説明
は省略する。ステップ13において、該当項目がないと
判断したら本処理を終了する。ステップ15において、
バッファ4内の検索結果データがあらかじめ決められた
ある条件を満たす順に差を持ち、序列設定が可能な検索
結果であると判定した場合には、バッファ4内に格納さ
れた検索結果データの順をその序列順にソートして表示
順を変更する(ステップ17)。ステップ17の検索結
果データの表示順を序列順にソートするアルゴリズムに
ついては本発明の範囲外なので、その詳細な説明は省略
する。
Other points in the processing sequence of the embodiment of the present invention are as follows. That is, step 1
Since the search method of 2 is outside the scope of the present invention, its detailed description is omitted. When it is determined in step 13 that there is no corresponding item, this process ends. In step 15,
When it is determined that the search result data in the buffer 4 has a difference in the order of satisfying a predetermined condition and the order setting is possible, the order of the search result data stored in the buffer 4 is changed. The display order is changed by sorting the order (step 17). The algorithm for sorting the display order of the search result data in step 17 in the order of rank is out of the scope of the present invention, and thus its detailed description is omitted.

【0012】図3は、バッファ4に格納された検索結果
データのデータ構造の一例を示す。このようにデータ構
造には、ステップ14における出力順を示すインデック
ス<項目1>と、項目1に対応するデータ内容<項目2
>と、後に並び替えに使用する乱数値<項目3>を要素
とする配列領域が用意されている。ステップ16のスタ
ート時には、項目1と項目2に関するデータのみが設定
されており、項目3は空欄となっていることを前提とす
る。
FIG. 3 shows an example of the data structure of the search result data stored in the buffer 4. Thus, in the data structure, the index <item 1> indicating the output order in step 14 and the data content <item 2 corresponding to item 1 are included.
> And a random number value <item 3> to be used for sorting later is provided as an array area. It is assumed that at the start of step 16, only the data relating to item 1 and item 2 are set and item 3 is blank.

【0013】図4は、図2のステップ16の乱数を使用
した表示順変更アルゴリズムの詳細を示す。
FIG. 4 shows details of the display order changing algorithm using random numbers in step 16 of FIG.

【0014】まず、変数nの初期値を1と仮定する。項
目1のn番目のデータに対応する乱数を乱数発生機を用
いて生成し(ステップ21)、生成されたこの乱数を項
目3のn番目のデータとして設定する(ステップ2
2)。次に、項目3に未設定の領域があるか否かを判定
して(ステップ23)、未設定の領域が残っていれば変
数nを1増加してからステップ21に処理を戻す。そし
て、バッファ4に格納された検索結果データの総数の数
だけ上記処理を繰り返す。項目3に未設定の領域がなく
なれば、項目3の乱数値を昇順または降順にソートし
て、バッファ4に格納された検索結果データの並び順を
変更する(ステップ24)。
First, it is assumed that the initial value of the variable n is 1. A random number corresponding to the nth data item 1 is generated using a random number generator (step 21), and the generated random number is set as the nth data item 3 (step 2).
2). Next, it is judged whether or not there is an unset area in item 3 (step 23), and if there is an unset area, the variable n is incremented by 1 and the process is returned to step 21. Then, the above processing is repeated for the total number of search result data stored in the buffer 4. When there is no unset area in item 3, the random number values of item 3 are sorted in ascending or descending order to change the order of the search result data stored in the buffer 4 (step 24).

【0015】[0015]

【発明の効果】以上説明したように、本発明によれば、
データベースシステムにおいて検索結果が序列設定不能
な同一条件である場合には、その検索結果を乱数発生機
で生成した乱数を用いてその表示順をランダムに並べ変
えて表示するようにしているので、序列設定不能な同一
条件の検索結果に対する表示順による不公平が取り除か
れ、同じデータベース登録料を支払った情報源の利益の
公平を保証することができるという効果がある。
As described above, according to the present invention,
If the search results in the database system have the same condition that the order cannot be set, the search results are displayed by randomly rearranging the display order using a random number generated by a random number generator. There is an effect that the unfairness due to the display order for the search results of the same condition that cannot be set is removed, and the fairness of the profit of the information source who paid the same database registration fee can be guaranteed.

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

【図1】本発明の一実施例の検索結果表示方法を実行す
るデータベースシステムの概略構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a schematic configuration of a database system that executes a search result display method according to an embodiment of the present invention.

【図2】本発明の一実施例の検索結果表示方法の処理手
順を示すフローチャートである。
FIG. 2 is a flowchart showing a processing procedure of a search result display method according to an embodiment of the present invention.

【図3】図1のバッファ4に格納された検索結果データ
のデータ構造の一例を示すメモリマップ図である。
FIG. 3 is a memory map diagram showing an example of a data structure of search result data stored in a buffer 4 of FIG.

【図4】図2のステップ16の乱数を使用した表示順変
更アルゴリズムの詳細を示すフローチャートである。
FIG. 4 is a flowchart showing details of a display order changing algorithm using a random number in step 16 of FIG.

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

1A,1B,1C 入出力用端末 2 データベースシステムのマネージメントを行うCP
U 3 各種情報を記憶するデータベース 4 検索結果を一時記憶するバッファ
1A, 1B, 1C Input / output terminal 2 CP that manages the database system
U 3 Database that stores various information 4 Buffer that temporarily stores search results

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 端末からの検索キーの入力を受信するス
テップと、 受信した検索キーに該当するデータをデータベース内か
ら検索するステップと、 検索した該当データを検索結果としてバッファに一時格
納するステップと、 前記検索結果が序列設定不能な同一条件のものであるか
否かを判定するステップと、 前記検索結果が序列設定不能な同一条件のものと判定し
た場合には、前記バッファ内の検索結果の表示順序を乱
数発生手段で発生させた乱数を使用して変更するステッ
プと、 変更後の表示順で前記検索結果を前記端末に出力するス
テップとを有することを特徴とする検索結果表示方法。
1. A step of receiving an input of a search key from a terminal, a step of searching the database for data corresponding to the received search key, and a step of temporarily storing the searched corresponding data in a buffer as a search result. , A step of determining whether or not the search result is under the same condition that the order cannot be set, and when it is determined that the search result is under the same condition that the order cannot be set, the search result in the buffer A search result display method comprising: a step of changing the display order using a random number generated by a random number generating means; and a step of outputting the search result to the terminal in the changed display order.
JP5175301A 1993-07-15 1993-07-15 Retrieval result display method Pending JPH0736918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5175301A JPH0736918A (en) 1993-07-15 1993-07-15 Retrieval result display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5175301A JPH0736918A (en) 1993-07-15 1993-07-15 Retrieval result display method

Publications (1)

Publication Number Publication Date
JPH0736918A true JPH0736918A (en) 1995-02-07

Family

ID=15993708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5175301A Pending JPH0736918A (en) 1993-07-15 1993-07-15 Retrieval result display method

Country Status (1)

Country Link
JP (1) JPH0736918A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002222356A (en) * 2001-01-25 2002-08-09 Hitachi Software Eng Co Ltd Method and program for menu display of advertisement banner in web page
JP2015057747A (en) * 2014-12-26 2015-03-26 株式会社Jvcケンウッド Information processing method, display method, information processor, display, information processing program, and display program
JP2016076266A (en) * 2015-12-28 2016-05-12 株式会社Jvcケンウッド Information processing method, display method, information processor, display device, information processing program, and display program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002222356A (en) * 2001-01-25 2002-08-09 Hitachi Software Eng Co Ltd Method and program for menu display of advertisement banner in web page
JP2015057747A (en) * 2014-12-26 2015-03-26 株式会社Jvcケンウッド Information processing method, display method, information processor, display, information processing program, and display program
JP2016076266A (en) * 2015-12-28 2016-05-12 株式会社Jvcケンウッド Information processing method, display method, information processor, display device, information processing program, and display program

Similar Documents

Publication Publication Date Title
JP3251138B2 (en) Hash method
JP3691018B2 (en) Longest match search circuit and method, program, and recording medium
JPH0736918A (en) Retrieval result display method
JPH021059A (en) Associative retrieving system
JP2003150633A (en) Data joining/presenting method and data joining/ presenting program
KR100426995B1 (en) Method and system for indexing document
KR980004144A (en) Process flow creation system
JPH04182828A (en) In-table entry selection system using psuedo-random number
JPH06215044A (en) Information retrieval processor
JPH08235204A (en) Method and device for retrieving document
JPS6143338A (en) Searching of thin data base using association technology
JPH06103312A (en) Retrieving device by finite element method
JPS60196844A (en) Retrieving device of information
JPH03230273A (en) Holding system for retrieval condition formula
JPS61278932A (en) Method of processing data addition
JP3111081B2 (en) Data retrieval device
JPH09330322A (en) Data retrieval device
JPH04297956A (en) Multimedium retrieval and processing system
JPH03282885A (en) Table retrieving device with learning function
JPS6266326A (en) Array processing system for japanese data
JPH05165891A (en) Data registration/retrieval system of data base
JP2000148782A (en) Method and system for retrieval from relational data base and information recording medium where retrieving program for relational data base is recorded
JPH08212232A (en) Example data base retrieval and presenting method
JPH0520149A (en) High speed retrieving/reading-out system in cad system
JPS63276122A (en) Data block arranging method