JP2005092551A - Document search device, document search method, and document search program - Google Patents
Document search device, document search method, and document search program Download PDFInfo
- Publication number
- JP2005092551A JP2005092551A JP2003325464A JP2003325464A JP2005092551A JP 2005092551 A JP2005092551 A JP 2005092551A JP 2003325464 A JP2003325464 A JP 2003325464A JP 2003325464 A JP2003325464 A JP 2003325464A JP 2005092551 A JP2005092551 A JP 2005092551A
- Authority
- JP
- Japan
- Prior art keywords
- document
- character string
- search
- link
- label
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Document Processing Apparatus (AREA)
Abstract
【課題】検索結果文書の閲覧の高速化および効率化を図ること。
【解決手段】検索結果一覧から選択された文書の本文を表示するにあたって、本発明にかかる文書検索装置は、図示するように当該文書の本文中に出現する個々の検索文字列に、それぞれその直後の検索文字列へのリンクを設定する。本文中の検索文字列を順次クリックすることで、検索結果文書中、検索文字列の出現する箇所だけを高速かつ効率的に移動してゆくことができる。なお、文書中の最後の検索文字列は次文書の最初の検索文字列にリンクしているので、文書本文からいちいち検索結果一覧に戻る必要がない。また、文書末/次文書方向だけでなく、文書頭/前文書方向へのリンクを設定することも可能である。検索結果文書中で、検索文字列の出現する位置が大きく離れている場合、検索結果として多数の文書が得られた場合などに特に有用である。
【選択図】 図9
To increase the speed and efficiency of browsing search result documents.
In displaying the text of a document selected from a search result list, the document search apparatus according to the present invention immediately after each search character string appearing in the text of the document, as shown in the figure. Set a link to the search string. By sequentially clicking on the search character string in the text, only the portion where the search character string appears in the search result document can be moved quickly and efficiently. Since the last search character string in the document is linked to the first search character string in the next document, there is no need to return to the search result list from the document body. It is also possible to set not only the document end / next document direction but also a link to the document head / previous document direction. This is particularly useful when the position where the search character string appears is far apart in the search result document, or when a large number of documents are obtained as search results.
[Selection] Figure 9
Description
この発明は、検索条件に適合する電子文書を検索する文書検索装置、文書検索方法、および文書検索プログラムに関する。 The present invention relates to a document search apparatus, a document search method, and a document search program that search for an electronic document that meets a search condition.
従来、検索にヒットした文書の全文や要約などを表示する際に、検索条件として指定された文字列(以下では「検索文字列」と呼ぶ)を太字など特徴のある書体、あるいはハイライト表示などで強調することで、文書の要点や概要を把握しやすくする手法があった。 Conventionally, when displaying the full text or summary of a document that has been found in a search, the character string specified as a search condition (hereinafter referred to as “search character string”) is a typeface with a characteristic such as bold or highlighted display. By emphasizing the above, there was a technique that made it easier to understand the main points and outline of the document.
しかしながら検索結果文書中で、検索文字列の出現する位置が大きく離れているような場合には、操作者は文書中の強調表示されている箇所を、逐一画面スクロールなどで追ってゆかなければならない。この操作は主にマウスからとなるため、少しだけスクロールするつもりが行き過ぎてしまったなどの誤操作が発生しやすい。たとえそうでなくとも、書体の差異などによる強調表示はディスプレイでは見づらいため、探している情報のある箇所をうっかり見落としてしまうこともあった。 However, when the position where the search character string appears is far away in the search result document, the operator must follow the highlighted portion in the document by scrolling the screen. Since this operation is mainly performed from the mouse, it is easy to cause erroneous operations such as going too far to scroll a little. Even if this is not the case, highlighting due to differences in typefaces is difficult to see on the display, so some parts of the information you are looking for may be inadvertently overlooked.
しかも検索結果として多数の文書がヒットした場合、検索結果一覧から文書を選択し、スクロールによりその本文を概観した後、さらに一覧に戻って次の文書を選択する、というような画面間の行き来を何度も繰り返さなければならなかった。 In addition, when a large number of documents are hit as a search result, select a document from the search result list, scroll the overview of the text, and then return to the list and select the next document. I had to repeat it many times.
この発明は、上述した従来技術による問題点を解消するため、操作者が検索結果文書中の目的の箇所(具体的には検索文字列の出現位置)を高速かつ効率的に閲覧することが可能な文書検索装置、文書検索方法、および文書検索プログラムを提供することを目的とする。 In order to eliminate the above-described problems caused by the conventional technology, the operator can quickly and efficiently browse a target location (specifically, the appearance position of a search character string) in a search result document. An object of the present invention is to provide a document search apparatus, a document search method, and a document search program.
上述した課題を解決し、目的を達成するため、請求項1の発明にかかる文書検索装置は、検索条件に適合する電子文書を検索する文書検索装置において、前記検索条件として指定された文字列が前記電子文書の本文中で出現する位置を特定する挿入位置特定手段と、前記挿入位置特定手段により特定された各位置に当該位置を識別するためのラベルを挿入するラベル挿入手段と、前記ラベル挿入手段によりラベルを挿入された各位置へのリンクを、前記電子文書の本文中の前記検索条件として指定された文字列のうち当該位置から文書頭方向で最初に出現するものに設定するリンク挿入手段と、を備えることを特徴とする。 In order to solve the above-described problems and achieve the object, the document search apparatus according to the invention of claim 1 is a document search apparatus that searches for an electronic document that meets a search condition. An insertion position specifying means for specifying a position appearing in the text of the electronic document, a label inserting means for inserting a label for identifying the position at each position specified by the insertion position specifying means, and the label insertion Link insertion means for setting a link to each position where a label has been inserted by the means to a character string specified as the search condition in the body of the electronic document that first appears in the document head direction from that position. And.
この請求項1の発明によれば、検索結果文書中の検索文字列が文書頭から文書末に向かって順次リンクされる。 According to the first aspect of the present invention, the search character strings in the search result document are sequentially linked from the document head toward the document end.
また、請求項2の発明にかかる文書検索装置は、請求項1に記載の発明において、前記リンク挿入手段が、前記電子文書の本文中で最初に出現する前記位置へのリンクを、当該電子文書とは別の電子文書の本文中で最後に出現する前記文字列に設定することを特徴とする。 According to a second aspect of the present invention, there is provided the document search apparatus according to the first aspect, wherein the link insertion unit assigns a link to the position first appearing in the text of the electronic document. It is set to the character string that appears last in the body of another electronic document.
この請求項2の発明によれば、検索結果文書群中の検索文字列が文書間をまたがって順次リンクされる。 According to the invention of claim 2, the search character strings in the search result document group are sequentially linked across the documents.
また、請求項3の発明にかかる文書検索装置は、請求項1または請求項2に記載の発明において、さらに、前記ラベル挿入手段によりラベルを挿入された各位置へのリンクを、前記電子文書の本文中の前記検索条件として指定された文字列のうち当該位置から文書末方向で最初に出現するものに設定する第2のリンク挿入手段を備えることを特徴とする。 According to a third aspect of the present invention, there is provided the document retrieval device according to the first or second aspect, further comprising: linking the respective positions into which the labels are inserted by the label insertion means; A second link insertion means is provided for setting a character string specified as the search condition in the text to appear first in the document end direction from the position.
この請求項3の発明によれば、検索結果文書中の検索文字列が文書末から文書頭に向かって順次リンクされる。 According to the invention of claim 3, the search character strings in the search result document are sequentially linked from the end of the document toward the beginning of the document.
また、請求項4の発明にかかる文書検索装置は、請求項1〜請求項3のいずれか一つに記載の発明において、さらに、前記電子文書の本文の表示中に前記リンク挿入手段または前記第2のリンク挿入手段によりリンクを設定された文字列が指定された場合に、当該文字列から文書末方向または文書頭方向で最初に出現するラベル付近の文字列を表示する文書表示手段を備えることを特徴とする。 According to a fourth aspect of the present invention, there is provided the document search device according to any one of the first to third aspects, wherein the link insertion unit or the first link is displayed during the display of the text of the electronic document. When a character string to which a link is set by the link insertion means of 2 is specified, document display means for displaying a character string near a label that appears first in the document end direction or document head direction from the character string is provided. It is characterized by.
この請求項4の発明によれば、画面表示された本文中のリンクを指定すると、その直前または直後の検索文字列が画面内となるように上記画面がスクロールされる。 According to the fourth aspect of the present invention, when a link in the text displayed on the screen is designated, the screen is scrolled so that the search character string immediately before or after the link is within the screen.
また、請求項5の発明にかかる文書検索装置は、請求項4に記載の発明において、前記文書表示手段が、前記文字列が第1の操作により指定された場合には当該文字列から文書末方向で最初に出現するラベル付近の文字列、前記文字列が第2の操作により指定された場合には当該文字列から文書頭方向で最初に出現するラベル付近の文字列を表示することを特徴とする。 According to a fifth aspect of the present invention, there is provided the document search device according to the fourth aspect, wherein the document display means starts from the character string when the character string is designated by the first operation. A character string near a label that first appears in the direction, and when the character string is designated by the second operation, a character string near the label that appears first in the document head direction from the character string is displayed. And
この請求項5の発明によれば、リンクを文書末方向・文書頭方向のいずれの方向に辿ってゆくかを、当該リンクが設定された検索文字列の指定方法によって切り替えることができる。 According to the fifth aspect of the present invention, it is possible to switch whether the link is traced in the document end direction or the document head direction by the method of specifying the search character string in which the link is set.
また、請求項6の発明にかかる文書検索装置は、請求項4または請求項5に記載の発明において、前記文書表示手段が、前記文字列が指定された場合に、当該文字列を表示中の画面領域とは別の画面領域に当該文字列から文書末方向または文書頭方向で最初に出現するラベル付近の文字列を表示することを特徴とする。 According to a sixth aspect of the present invention, there is provided the document search device according to the fourth or fifth aspect, wherein the document display means displays the character string when the character string is designated. A character string near a label that first appears in the document end direction or document head direction from the character string is displayed in a screen area different from the screen area.
この請求項6の発明によれば、リンク元付近の本文とリンク先付近の本文とを別画面で同時に閲覧することができる。 According to the invention of claim 6, the text near the link source and the text near the link destination can be browsed simultaneously on different screens.
また、請求項7の発明にかかる文書検索方法は、検索条件に適合する電子文書を検索する文書検索方法において、前記検索条件として指定された文字列が前記電子文書の本文中で出現する位置を特定する挿入位置特定工程と、前記挿入位置特定工程で特定された各位置に当該位置を識別するためのラベルを挿入するラベル挿入工程と、前記ラベル挿入工程でラベルを挿入された各位置へのリンクを、前記電子文書の本文中の前記検索条件として指定された文字列のうち当該位置から文書頭方向で最初に出現するものに設定するリンク挿入工程と、を含むことを特徴とする。 According to a seventh aspect of the present invention, there is provided a document search method for searching for an electronic document that meets a search condition, wherein a position where a character string specified as the search condition appears in the body of the electronic document is determined. An insertion position specifying step for specifying, a label inserting step for inserting a label for identifying the position at each position specified in the insertion position specifying step, and a position for inserting the label in the label inserting step. And a link insertion step of setting a link to a character string specified as the search condition in the body of the electronic document, which first appears in the document head direction from the position.
この請求項7の発明によれば、検索結果文書中の検索文字列が文書頭から文書末に向かって順次リンクされる。 According to the invention of claim 7, the search character strings in the search result document are sequentially linked from the document head toward the document end.
また、請求項8の発明にかかる文書検索方法は、請求項7に記載の発明において、前記リンク挿入工程では、前記電子文書の本文中で最初に出現する前記位置へのリンクを、当該電子文書とは別の電子文書の本文中で最後に出現する前記文字列に設定することを特徴とする。 The document search method according to the invention of claim 8 is the document search method according to claim 7, wherein, in the link insertion step, a link to the position that appears first in the text of the electronic document is displayed. It is set to the character string that appears last in the body of another electronic document.
この請求項8の発明によれば、検索結果文書群中の検索文字列が文書間をまたがって順次リンクされる。 According to the invention of claim 8, the search character strings in the search result document group are sequentially linked across the documents.
また、請求項9の発明にかかる文書検索方法は、請求項7または請求項8に記載の発明において、さらに、前記ラベル挿入工程でラベルを挿入された各位置へのリンクを、前記電子文書の本文中の前記検索条件として指定された文字列のうち当該位置から文書末方向で最初に出現するものに設定する第2のリンク挿入工程を含むことを特徴とする。 According to a ninth aspect of the present invention, in the document retrieval method according to the seventh or eighth aspect, a link to each position where a label is inserted in the label insertion step is further added to the electronic document. It includes a second link insertion step of setting a character string specified as the search condition in the text to appear first in the document end direction from the position.
この請求項9の発明によれば、検索結果文書中の検索文字列が文書末から文書頭に向かって順次リンクされる。 According to the invention of claim 9, the search character strings in the search result document are sequentially linked from the end of the document toward the beginning of the document.
また、請求項10の発明にかかる文書検索方法は、請求項7〜請求項9のいずれか一つに記載の発明において、さらに、前記電子文書の本文の表示中に前記リンク挿入工程または前記第2のリンク挿入工程でリンクを設定された文字列が指定された場合に、当該文字列から文書末方向または文書頭方向で最初に出現するラベル付近の文字列を表示する文書表示工程を含むことを特徴とする。 A document search method according to a tenth aspect of the present invention is the document search method according to any one of the seventh to ninth aspects, further comprising the step of inserting the link during the display of the text of the electronic document. Including a document display step of displaying a character string in the vicinity of a label that appears first in the document end direction or document head direction from the character string when a character string to which a link is set in the link insertion step of 2 is specified. It is characterized by.
この請求項10の発明によれば、画面表示された本文中のリンクを指定すると、その直前または直後の検索文字列が画面内となるように上記画面がスクロールされる。 According to the tenth aspect of the present invention, when a link in the text displayed on the screen is designated, the screen is scrolled so that the search character string immediately before or after the link is within the screen.
また、請求項11の発明にかかる文書検索方法は、請求項10に記載の発明において、前記文書表示工程では、前記文字列が第1の操作により指定された場合には当該文字列から文書末方向で最初に出現するラベル付近の文字列、前記文字列が第2の操作により指定された場合には当該文字列から文書頭方向で最初に出現するラベル付近の文字列を表示することを特徴とする。 The document search method according to the invention of claim 11 is the document search method according to claim 10, wherein, in the document display step, when the character string is designated by the first operation, the character string is processed from the character string. A character string near a label that first appears in the direction, and when the character string is designated by the second operation, a character string near the label that appears first in the document head direction from the character string is displayed. And
この請求項11の発明によれば、リンクを文書末方向・文書頭方向のいずれの方向に辿ってゆくかを、当該リンクが設定された検索文字列の指定方法によって切り替えることができる。 According to the eleventh aspect of the present invention, it is possible to switch whether the link is traced in the document end direction or the document head direction by the method for specifying the search character string in which the link is set.
また、請求項12の発明にかかる文書検索方法は、請求項10または請求項11に記載の発明において、前記文書表示工程では、前記文字列が指定された場合に、当該文字列を表示中の画面領域とは別の画面領域に当該文字列から文書末方向または文書頭方向で最初に出現するラベル付近の文字列を表示することを特徴とする。 A document search method according to a twelfth aspect of the present invention is the document search method according to the tenth or eleventh aspect, wherein the character string is displayed when the character string is designated in the document display step. A character string near a label that first appears in the document end direction or document head direction from the character string is displayed in a screen area different from the screen area.
この請求項12の発明によれば、リンク元付近の本文とリンク先付近の本文とを別画面で同時に閲覧することができる。 According to the invention of claim 12, the text near the link source and the text near the link destination can be browsed simultaneously on different screens.
また、請求項13の発明にかかる文書検索プログラムによれば、前記請求項7〜請求項12のいずれか一つに記載された方法がコンピュータによって実行される。 According to the document search program of the invention of claim 13, the method described in any one of claims 7 to 12 is executed by a computer.
本発明にかかる文書検索装置、文書検索方法、および文書検索プログラムによれば、操作者は検索結果文書中の目的の箇所(具体的には検索文字列の出現位置)を、その本文の表示時に自動挿入されたリンクを辿ることで高速かつ効率的に閲覧することができるという効果を奏する。 According to the document search device, the document search method, and the document search program according to the present invention, the operator can specify the target location (specifically, the appearance position of the search character string) in the search result document when the text is displayed. There is an effect that browsing can be performed quickly and efficiently by following the automatically inserted link.
以下に添付図面を参照して、この発明にかかる文書検索装置、文書検索方法、および文書検索プログラムの好適な実施の形態を詳細に説明する。 Exemplary embodiments of a document search apparatus, a document search method, and a document search program according to the present invention will be explained below in detail with reference to the accompanying drawings.
図1は、この発明の実施の形態にかかる文書検索装置のハードウエア構成の一例を示す説明図である。図中、101は装置全体を制御するCPUを、102は基本入出力プログラムなどを記憶したROMを、103はCPU101のワークエリアとして使用されるRAMを、それぞれ示している。
FIG. 1 is an explanatory diagram showing an example of a hardware configuration of a document search apparatus according to an embodiment of the present invention. In the figure, 101 indicates a CPU that controls the entire apparatus, 102 indicates a ROM that stores basic input / output programs, and 103 indicates a RAM that is used as a work area of the
また、104はCPU101の制御にしたがってHD(ハードディスク)105に対するデータのリード/ライトを制御するHDD(ハードディスクドライブ)を、105はHDD104の制御にしたがって書き込まれたデータを記憶するHDを、それぞれ示している。
また、106はCPU101の制御にしたがってFD(フレキシブルディスク)107に対するデータのリード/ライトを制御するFDD(フレキシブルディスクドライブ)を、107はFDD106の制御にしたがって書き込まれたデータを記憶する着脱自在のFDを、それぞれ示している。
また、108はCPU101の制御にしたがってCD−RW109に対するデータのリード/ライトを制御するCD−RWドライブを、109はCD−RWドライブ108の制御にしたがって書き込まれたデータを記憶する着脱自在のCD−RWを、それぞれ示している。
また、110はカーソル、メニュー、ウィンドウ、あるいは文字や画像などの各種データを表示するディスプレイを、111は文字、数値、各種指示などの入力のための複数のキーを備えたキーボードを、112は各種指示の選択や実行、処理対象の選択、マウスポインタの移動などをおこなうマウスを、それぞれ示している。
また、113は通信ケーブル114を介してLANやWANなどのネットワークに接続され、当該ネットワークとCPU101とのインターフェースとして機能するネットワークI/Fを、100は上記各部を接続するためのバスを、それぞれ示している。
次に、図2はこの発明の実施の形態にかかる文書検索装置の構成を機能的に示す説明図である。図中、200は入出力部であり、検索文字列をはじめとする各種検索条件の入力をキーボード111などから受け付けるとともに、検索された文書の一覧、あるいは当該一覧からマウス112などで選択された文書の本文などをディスプレイ110に表示する機能部である。なお、画面表示する検索結果一覧は後述する一覧作成部203から、文書の本文は後述するリンク挿入部205から、それぞれ取得する。
Next, FIG. 2 is an explanatory diagram functionally showing the configuration of the document search apparatus according to the embodiment of the present invention. In the figure,
201は文書DB(データベース)であり、検索対象となる文書に関する情報を保持する機能部である。ここでは検索対象文書は、本装置が接続されたネットワーク上のハイパーテキスト群(インターネット上のホームページなど)であり、装置内の文書DB201には各文書の属性情報(URLや最終更新日時など)や、文書中に出現する語や語句のインバーテッドファイルなどが登録されているものとする。
202は文書検索部であり、文書DB201に登録された文書のうち、入出力部200から入力した検索条件に適合するものを検索する機能部である。なお、文書検索の手法として代表的なものには
(1)検索文字列が文書中に含まれるか否かで単純に適合/不適合を判断するブーリアン検索、
(2)検索文字列(群)から作成した入力ベクトルと、各文書につきそこに含まれる語や語句から作成した文書ベクトルとを比較して、両者の距離(類似度)が近いものを適合文書とするベクトル空間法、
その他これらのバリエーションや組み合わせなど様々なものがあるが、少なくとも検索条件として何らかの文字列を使用するのであれば、文書検索部202による検索手法はどのようなものであってもよい。なお、文書検索部202は検索条件に適合した文書のIDなどを、後述する一覧作成部203に通知する。
(2) The input vector created from the search character string (group) is compared with the document vector created from the words and phrases contained in each document, and the documents that are close in distance (similarity) are matched documents. The vector space method,
Although there are various other variations and combinations, any search method by the
203は一覧作成部であり、文書検索部202から通知された各文書につき、URLやタイトルなどの必要事項を文書DB201から取り出して、検索結果一覧すなわち適合文書へのリンク集を作成する機能部である。ここで作成された検索結果一覧は、入出力部200に出力される。
A
204は文書取得部であり、入出力部200により表示された検索結果一覧の中からいずれかの文書が選択された場合に、入出力部200からの指示を受けて、当該文書の本体をネットワーク上の他の情報処理装置などから取得する機能部である。上述のように、文書検索部202により検索された文書の本体は装置外のネットワークに存在しているので、一覧からの文書の選択すなわちその本文の表示指示があったときに、文書取得部204で当該文書(および当該文書からリンクされている画像など)をダウンロードする。ここでダウンロードされた文書は、後述するリンク挿入部205に出力される。
205はリンク挿入部であり、文書取得部204により取得された文書中の各検索文字列に、それぞれその直後に出現する検索文字列へのリンクを設定する機能部である。この設定の手順は後述するフローチャートの中で説明する。なお、リンクを埋め込まれた文書は入出力部200に出力される。
A
次に、図3はこの発明の実施の形態にかかる文書検索装置における、文書検索処理の手順を示すフローチャートである。操作者が検索条件を設定して本装置に検索を指示すると(ステップS301:Yes)、これを検知した入出力部200から文書検索部202へ当該条件が引き渡され、文書検索部202は文書DB201の中から、当該条件に適合する文書を検索する(ステップS302)。そして、文書検索部202から結果を通知された一覧作成部203が検索結果一覧を作成し(ステップS303)、これが入出力部200に引き渡されて、ディスプレイ110に表示される(ステップS304)。
Next, FIG. 3 is a flowchart showing the procedure of the document search process in the document search apparatus according to the embodiment of the present invention. When the operator sets search conditions and instructs the apparatus to perform a search (step S301: Yes), the conditions are transferred from the input /
図4は、一覧作成部203により作成され入出力部200により表示される、検索結果一覧の一例を示す説明図である。図示する一覧には検索条件に適合した文書のタイトルがリストアップされ、個々のタイトルには対応する文書へのURLが埋め込まれている。なお、ここでは検索文字列として「阿波踊り」と「演舞場」の2つが指定されたものとする。
FIG. 4 is an explanatory diagram showing an example of a search result list created by the
次に、いずれかの検索結果文書につきその本文の表示が指示された、すなわち図4中のいずれかのタイトルがマウス112でクリックされたことを検知すると(ステップS305:Yes)、入出力部200は当該タイトルに埋め込まれたURLを文書取得部204に通知し、これを受けた文書取得部204が、当該URLで特定される情報処理装置から対応する文書の本体を取得する(ステップS306)。そして、この文書を文書取得部204から受け取ったリンク挿入部205で、本文中の検索文字列にリンクが埋め込まれる(ステップS307〜S309)。
Next, when it is detected that the display of the text is instructed for any of the search result documents, that is, when any of the titles in FIG. 4 is clicked with the mouse 112 (step S305: Yes), the input /
すなわち、リンク挿入部205はまず検索結果として得られた各文書中、検索条件として指定された文字列、ここでは「阿波踊り」あるいは「演舞場」が出現する位置を特定する(ステップS307)。この位置は文書DB201中の、上述のインバーテッドファイルを参照することで特定できるが、インバーテッドファイルの情報が文書の最新の状態を反映していないこともあるので、実際にダウンロードした文書から再度検索文字列を検索するようにしてもよい。
That is, the
次に、リンク挿入部205は上記で特定した位置(各検索文字列の直前)に連番のラベルを挿入する(ステップS308)。このラベルはHTMLの場合、たとえば「<A NAME=”0001”>」「<A NAME=”0002”>」など連番を含むタグとなる。次に、リンク挿入部205は挿入したラベルへのリンクを、ラベルを付加された検索文字列の文書頭方向で最初に出現する検索文字列に設定する(ステップS309)。
Next, the
たとえば、図4の一覧中に現れている「徳○市観光協会」の本文が図5に示すようなものだったとすると、リンク挿入部205によるリンク挿入後の当該文書は図6に示すようになる。図示する文書は、6行目に検索文字列「阿波踊り」を、8行目および9行目に検索文字列「演舞場」をそれぞれ含んでいる。そして、たとえば8行目の「演舞場」の直前にはラベル「<A NAME=”0002”>」が挿入されるとともに、当該ラベルを付加された検索文字列から文書頭へ遡って最初に出現する6行目の「阿波踊り」の前後に、8行目の「演舞場」へのリンクを示す「<A HREF=”#0002”>」および「</A>」が挿入されている。
For example, if the text of “Toku ○ City Tourism Association” appearing in the list of FIG. 4 is as shown in FIG. 5, the document after the link insertion by the
そして、図6の文書がリンク挿入部205から入出力部200に出力され、ディスプレイ110に表示される(図3ステップS310)。図7は、入出力部200により表示される文書の一例(図6に示した文書の表示例)を示す説明図である。リンク挿入部205により挿入されたラベルは画面上には現れず、リンクは検索文字列の下線として表現されている。そして、たとえば1行目の「阿波踊り」をクリックすると、入出力部200により3行目の「演舞場」が頭出しされる結果、表示される画面は2行下にスクロールして図8に示すようになる。
6 is output from the
図9は、リンク挿入部205によるリンク挿入後の検索結果文書間の関係を模式的に示す説明図である。上述のように、「徳○市観光協会」の1行目の「阿波踊り」は3行目の「演舞場」に、3行目の「演舞場」は4行目の「演舞場」に、4行目の「演舞場」は当該文書中にこれ以上検索文字列が含まれないため、「阿波踊り百科」の1行目の「演舞場」に、それぞれリンクしている。このように、検索結果として得られた文書中の検索文字列をリンクで数珠つなぎに連結してゆき、最後の文書の最後の検索文字列(ここでは「阿波踊り日程&演舞場案内」の6行目の「演舞場」)からは、最初の文書の最初の検索文字列(ここでは「徳○市観光協会」の1行目の「阿波踊り」)にリンクを張る。
FIG. 9 is an explanatory diagram schematically showing the relationship between search result documents after the link is inserted by the
以上説明したように、本発明による文書検索装置、文書検索方法、および文書検索プログラムによれば、検索結果として得られた文書中の検索文字列が順次リンクで連結され、当該文字列のクリックにより後方の検索文字列へ瞬時に移動できる。また、リンクを順次辿ることで一つの文書から次の文書へと移動できるので、従来のようにいちいち検索結果一覧に戻る必要がない。これにより、文書中での検索文字列の出現位置が分散していたり、検索にヒットした文書数が多い場合にも、高速かつ効率的に目的の箇所だけを閲覧することができる。 As described above, according to the document search apparatus, the document search method, and the document search program according to the present invention, search character strings in the document obtained as a search result are sequentially linked by a link, and by clicking the character string, Instantly move to the search string behind. Further, since it is possible to move from one document to the next by sequentially following the links, there is no need to return to the search result list one by one as in the prior art. As a result, even when the appearance positions of the search character strings in the document are dispersed or the number of documents hit in the search is large, only the target portion can be browsed quickly and efficiently.
なお、上述した実施の形態では検索文字列と完全に一致する文字列のみにリンクを埋め込んだが、たとえば「阿波おどり」など、検索文字列と表記は異なっても実質的に同一、あるいは類似する文字列もリンクのチェーンに組み込むようにしてもよい。 In the above-described embodiment, the link is embedded only in the character string that completely matches the search character string. However, for example, “Awaodori” or the like, the character that is substantially the same or similar even if the notation differs from the search character string. Columns may also be incorporated into the chain of links.
また、文書中に埋め込むリンクは必ずしも上記で例示したような形式である必要はない。たとえば図6の例では、ブラウザの「戻る」機能などを利用して文書頭/前文書方向へリンクを辿ることはできるが、文書中のリンクはもっぱら順方向のため、原理上は文書末/次文書方向への移動のみが可能である。そこで順方向だけでなく、逆方向へのリンクもあわせて文書中に埋め込むことで、文書末/次文書方向あるいは文書頭/前文書方向のいずれの方向にでもリンクを辿ってゆけるようにしてもよい。 Also, the link embedded in the document does not necessarily have the format exemplified above. For example, in the example of FIG. 6, the link can be traced in the direction of the document head / previous document using the “return” function of the browser or the like. Only movement in the next document direction is possible. Therefore, not only the forward direction but also the link in the reverse direction is embedded in the document so that the link can be traced in either the document end / next document direction or the document head / previous document direction. Good.
この場合、たとえば通常のクリック時には文書末/次文書方向へ移動するが、
・特殊キー(ShiftキーやCtrlキーなど)を押しながらのクリック
・右クリックで開くコンテクストメニューからの所定のコマンドの選択
・特定のマウスジェスチャー(ボタンを押し込んだままマウスを文書頭方向へ移動、など)
などがあったときは、文書頭/前文書方向へ移動するようにする。言い換えれば指定方法の切替により、文書内の検索文字列をどの方向にでも移動してゆけるようにする。これを実現するには、リンク挿入部205に順方向および逆方向のリンクの挿入機能を持たせるとともに、操作者からの各種指示を受け付ける入出力部200に、移動方向の判定機能を持たせるようにすればよい。
In this case, for example, during normal click, it moves to the end / next document direction,
-Click while pressing a special key (Shift key, Ctrl key, etc.)-Select a predetermined command from the context menu opened by right-click-Specific mouse gesture (move the mouse toward the document head while holding down the button, etc.) )
If there is, etc., it moves in the direction of the document head / previous document. In other words, the search character string in the document can be moved in any direction by switching the designation method. In order to realize this, the
また、上述した実施の形態ではもっぱらマウス112のクリックにより、文書内の検索文字列を順次移動するようにしたが、このほか
・マウス112によるポイント(検索文字列にマウスポインタを重ねるのみ)
・キーボード111上のTabキーやカーソルキーの押下
・音声による指示
などによっても、次の検索文字列に移動できるようにしてもよい。
In the above-described embodiment, the search character string in the document is sequentially moved by clicking the
It may be possible to move to the next search character string by pressing the Tab key or the cursor key on the
また、図7および図8に示したように、移動の前後でウィンドウをスクロールするのではなく、リンク元の検索文字列付近を表示するウィンドウは残したまま、新たにウィンドウを開いて、リンク先の検索文字列付近を表示するようにしてもよい(図7のウィンドウと図8のウィンドウとを同時に表示)。これにより、移動先の前後の文脈などを事前に別ウィンドウで確認できる。 Also, as shown in FIGS. 7 and 8, the window is not scrolled before and after the movement, but a window that displays the vicinity of the search character string of the link source is left and a new window is opened and the link destination is displayed. May be displayed (the window of FIG. 7 and the window of FIG. 8 are simultaneously displayed). As a result, the context before and after the destination can be confirmed in a separate window in advance.
なお、上述した実施の形態では文書の検索と検索された文書の表示とを同一の装置内で行ったが、たとえば図2の各部のうち入出力部200をクライアントに、それ以外の各部をサーバに備えるようにしてもよい。この場合クライアントには、検索条件の入力と送信、検索結果一覧や適合文書の本文の表示、あるいは表示中の本文に埋め込まれたリンク先へのジャンプなどが可能な、一般的なブラウザがあればよい。
In the above-described embodiment, the search of the document and the display of the searched document are performed in the same apparatus. For example, among the units shown in FIG. 2, the input /
なお、本実施の形態で説明した文書検索法は、予め用意されたプログラムをパーソナル・コンピュータやワークステーション等のコンピュータで実行することにより実現することができる。このプログラムは、ハードディスク、フレキシブルディスク、CD−ROM、MO、DVD等のコンピュータで読み取り可能な記録媒体に記録され、コンピュータによって記録媒体から読み出されることによって実行される。またこのプログラムは、インターネット等のネットワークを介して配布することが可能な伝送媒体であってもよい。 The document search method described in the present embodiment can be realized by executing a program prepared in advance on a computer such as a personal computer or a workstation. This program is recorded on a computer-readable recording medium such as a hard disk, a flexible disk, a CD-ROM, an MO, and a DVD, and is executed by being read from the recording medium by the computer. The program may be a transmission medium that can be distributed via a network such as the Internet.
以上のように、本発明にかかる文書検索装置、文書検索方法、および文書検索プログラムは、検索結果文書の本文を分かりやすく表示する用途に有用であり、特に、文書中で検索文字列の出現する位置が大きく離れている場合や、検索結果として多数の文書が得られた場合などに適している。 As described above, the document search device, the document search method, and the document search program according to the present invention are useful for displaying the text of the search result document in an easy-to-understand manner, and in particular, the search character string appears in the document. This is suitable when the positions are far apart or when a large number of documents are obtained as search results.
100 バス
101 CPU
102 ROM
103 RAM
104 HDD
105 HD
106 FDD
107 FD
108 CD−RWドライブ
109 CD−RW
110 ディスプレイ
111 キーボード
112 マウス
113 ネットワークI/F
114 通信ケーブル
200 入出力部
201 文書DB
202 文書検索部
203 一覧作成部
204 文書取得部
205 リンク挿入部
100
102 ROM
103 RAM
104 HDD
105 HD
106 FDD
107 FD
108 CD-
110
114
202
Claims (13)
前記検索条件として指定された文字列が前記電子文書の本文中で出現する位置を特定する挿入位置特定手段と、
前記挿入位置特定手段により特定された各位置に当該位置を識別するためのラベルを挿入するラベル挿入手段と、
前記ラベル挿入手段によりラベルを挿入された各位置へのリンクを、前記電子文書の本文中の前記検索条件として指定された文字列のうち当該位置から文書頭方向で最初に出現するものに設定するリンク挿入手段と、
を備えることを特徴とする文書検索装置。 In a document search device that searches for electronic documents that meet search conditions,
An insertion position specifying means for specifying a position where the character string specified as the search condition appears in the text of the electronic document;
Label insertion means for inserting a label for identifying the position at each position specified by the insertion position specifying means;
A link to each position where the label is inserted by the label insertion means is set to a character string specified as the search condition in the body of the electronic document that first appears in the document head direction from that position. Link insertion means;
A document search apparatus comprising:
前記検索条件として指定された文字列が前記電子文書の本文中で出現する位置を特定する挿入位置特定工程と、
前記挿入位置特定工程で特定された各位置に当該位置を識別するためのラベルを挿入するラベル挿入工程と、
前記ラベル挿入工程でラベルを挿入された各位置へのリンクを、前記電子文書の本文中の前記検索条件として指定された文字列のうち当該位置から文書頭方向で最初に出現するものに設定するリンク挿入工程と、
を含むことを特徴とする文書検索方法。 In a document search method for searching for electronic documents that meet search conditions,
An insertion position specifying step for specifying a position where the character string specified as the search condition appears in the text of the electronic document;
A label insertion step of inserting a label for identifying the position at each position specified in the insertion position specifying step;
A link to each position where a label is inserted in the label insertion step is set to a character string specified as the search condition in the body of the electronic document that first appears in the document head direction from that position. Link insertion process;
A document retrieval method comprising:
A document search program for causing a computer to execute the method according to any one of claims 7 to 12.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003325464A JP2005092551A (en) | 2003-09-18 | 2003-09-18 | Document search device, document search method, and document search program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003325464A JP2005092551A (en) | 2003-09-18 | 2003-09-18 | Document search device, document search method, and document search program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2005092551A true JP2005092551A (en) | 2005-04-07 |
Family
ID=34455896
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003325464A Pending JP2005092551A (en) | 2003-09-18 | 2003-09-18 | Document search device, document search method, and document search program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2005092551A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014206983A (en) * | 2009-10-15 | 2014-10-30 | ネイバー コーポレーションNAVER Corporation | System and method for performing auto scroll |
-
2003
- 2003-09-18 JP JP2003325464A patent/JP2005092551A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014206983A (en) * | 2009-10-15 | 2014-10-30 | ネイバー コーポレーションNAVER Corporation | System and method for performing auto scroll |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7596766B1 (en) | Preview window including a storage context view of one or more computer resources | |
| US6381593B1 (en) | Document information management system | |
| JP3606401B2 (en) | Document retrieval apparatus and method | |
| US7783965B1 (en) | Managing links in a collection of documents | |
| US6938207B1 (en) | Method and system for indicating document traversal direction in a hyper linked navigation system | |
| US7266765B2 (en) | Detection and processing of annotated anchors | |
| US6047252A (en) | Machine translation method and source/target text display method | |
| US7296230B2 (en) | Linked contents browsing support device, linked contents continuous browsing support device, and method and program therefor, and recording medium therewith | |
| US6189018B1 (en) | Method and apparatus for implementing universal resource locator menus | |
| US5982370A (en) | Highlighting tool for search specification in a user interface of a computer system | |
| US20020080179A1 (en) | Data transfer method and data transfer device | |
| US6718518B1 (en) | Non-disruptive search facility | |
| US20020154159A1 (en) | Method, apparatus, and program for associating successive repointing of a browser's load function with navigational links in web pages | |
| JP2001084212A (en) | Method for preparing homepage | |
| US20060206814A1 (en) | Electronic document creation support apparatus and an electronic document creation support data component creating apparatus | |
| JP4496517B2 (en) | Search character input device, method, program, and WWW browser device | |
| JPH08320882A (en) | Document processing device and document retrieval device | |
| JP4725876B2 (en) | Data passing device | |
| JP2005092551A (en) | Document search device, document search method, and document search program | |
| JP3779935B2 (en) | Document search apparatus, document search method, and program causing computer to execute the method | |
| JP3737629B2 (en) | Document editing system, method, and recording medium | |
| JP2004348774A (en) | Document information management apparatus and document information management method | |
| JP2000067071A (en) | Device and method for displaying document and record medium recorded with document display program | |
| JP3712320B2 (en) | Variable document creation system, variable document output device and variable document creation device | |
| JP4331078B2 (en) | Search system and recording medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060523 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060724 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060912 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061113 |
|
| A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20070112 |
|
| A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20070209 |