(1) 構成
サンプルプログラムは,次の三つから構成されます。
(2) 前提条件
このサンプルプログラムは,次のソフトウェアを前提としています。
(3) 動作環境設定
(a) Groupmax Agent Javaオプションの動作環境設定
(b) 検索及びレポーティングアクションの動作環境設定
<srenv> := <検索サーバ設定>*
<検索サーバ設定> := <サーバ名指定> <サーバタイプ指定> <ログインユーザ設定>+{ <検索情報ソース指定> <結果通知詳細設定> }+
<サーバ名指定> := Server=<ホスト名/IPアドレス><NL>
<サーバタイプ指定> := ServerType=IS<NL>
<ログインユーザ設定> := <ユーザ名指定> <パスワード指定>
<ユーザ名指定> := LoginName=<ログインユーザ名><NL>
<パスワード指定> := Password=<ログインユーザパスワード><NL>
<検索情報ソース設定> := <検索情報ソースID指定> <検索情報ソース名指定>
<検索情報ソースID指定> := InfoSrcID=<文書クラスID><NL>
<検索情報ソース名指定> := InfoSrcName=<検索情報ソース名><NL>
<結果通知詳細設定> := <最大検索文書数指定> <ISGate Anchor設定>
<最大検索文書数指定> := MaxReportDocCount=<最大検索文書数10進表示文字列><NL>
<ISGate Anchor設定> := <ISGate Anchorタイプ指定>
<ISGateサーバ名指定>
<ISGate CGIパス指定>
<ISGate CGIプログラム指定>
<ISGate CGIメソッド指定>
<ISGateスキーマ指定>
<ISGateファイル名付加指定>
<ISGate Anchorタイプ指定> := ISDocAnchorType=isgate<NL>
<ISGateサーバ名指定> := ISGateServer=<ISGateサーバ名/IPアドレス><NL>
<ISGate CGIパス指定> := ISGateCGIPth=<ISGate CGIパス><NL>
<ISGate CGIプログラム指定> := ISGateCGIPrg=<ISGate CGIパス><NL>
<ISGate CGIメソッド指定> := ISGateCGIMtd=<ISGate CGIメソッド名><NL>
<ISGateスキーマ指定> := ISGateSchema=<ISGateスキーマ名><NL>
<ISGateファイル名付加指定> := ISGateIsSpecifyFile={yes|no}<NL>
<NL> := <改行コード '¥n'>
// Document Managerサーバ名,ログイン名(サーバ1)
Server=softis ← サーバ名
ServerType=IS ← サーバタイプ
LoginName=agent1 ← ログインユーザ名1
Password=agentpass1 ← パスワード1
LoginName=agent2 ← ログインユーザ名2
Password=agentpass2 ← パスワード2
LoginName=agent3 ← ログインユーザ名3
Password=agentpass3 ← パスワード3
LoginName=agent4 ← ログインユーザ名4
Password=agentpass4 ← パスワード4
// 検索対象情報ソース指定(情報ソース1)
InfoSrcID=C0250000000006E2 ← 検索対象文書クラスID
InfoSrcName=日立新聞 ← 情報ソース名(検索結果通知に記述)
MaxReportDocCount=100 ← 最大検索文書数を100に設定
// ISGate Anchor設定
ISDocAnchorType=isgate ← AnchorをISGateに指定
ISGateServer=softis ← ISGateサーバアドレス
ISGateCGIPth=cgi-bin ← ISGate CGIプログラムパス
ISGateCGIPrg=isgate ← ISGateCGIプログラム名
ISGateCGIMtd=Isgetdoc ← ISGateCGIメソッド名
ISGateSchema=nikkei ← ISGateスキーマ名
ISGateIsSpecifyFile=yes ← Anchorの末尾にファイル名を付加
// 検索対象情報ソース指定(情報ソース2)
InfoSrcID=C025000000002A77
InfoSrcName=WWWページ
MaxReportDocCount=100
// ISGate Anchor設定
ISDocAnchorType=isgate
ISGateServer=softis
ISGateCGIPth=cgi-bin
ISGateCGIPrg=isgate
ISGateCGIMtd=ISgetdoc
ISGateSchema=www
ISGateIsSpecifyFile=yes
// Document Managerサーバ名,ログイン名(サーバ2)
Server=systemis
ServerType=IS
LoginName=guest1
Password=guest1
LoginName=guest2
Password=guest2
LoginName=guest3
Password=guest3
LoginName=guest4
Password=guest4
// 検索対象情報ソース指定(情報ソース3)
InfoSrcID=C000000000000141
InfoSrcName=技術情報
MaxReportDocCount=100
// ISGate Anchor設定
ISDocAnchorType=isgate
ISGateServer=systemis
ISGateCGIPth=cgi-bin
ISGateCGIPrg=isgate
ISGateCGIMtd=Isgetdoc
ISGateSchema=techinfo
ISGateIsSpecifyFile=yes