|
|
IndexFile | Name of the index file. This parameter consists
of a file name defined by the OutputFileName parameter and path relative
to an applet codebase. To avoid security exception with some browsers, you should copy index file to a directory below applet's codebase. Check the html source in our examples. |
BGColor | Background RGB color of the applet represented
as a hexadecimal number. For example:
<PARAM NAME="BGCOLOR" VALUE="c0c0c0"> Also, you can use an applet_geom parameter to set applet's default color, font, font size, etc. |
Target | Frame name for document showing. Default is the current frame. |
Clock | If this parameter is set to "on", the Quest Agent will print out searching statistics to Java console. |
DisplayMode |
If this parameter is set to "external" in an applet space will be shown a button instead of the search panel. Click on the button will pop an external search panel. Tip: Use applet_geom parameter to set real panel size. |
AutoLunch | If this parameter is set to "yes" external view will popup right after applet loads. |
Result_Format | See hit display format. |
X;Y;Width;Height;FontName;FontSize;ForegroundColor;BackgroundColor;Label;All fields (X, Y, Width, etc.) are optional, but ";" as separator is obligatory. For example:
|
|
|
applet_geom | QuestAgent applet | ;;;;Dialog;14;;;; |
qbox_geom | query input box | 85;5;400;26;;;;;; |
list_geom | list of documents | 5;70;590;230;;;;;; |
label1_geom | label for query input box | 25;5;60;26;;;;;Query:; |
start_geom | start searching button | 495;5;85;26;;;;;Find; |
stop_geom | stop searching button | 495;40;85;26;;;;;Stop; |
newwin_geom | check button for showin document in new window | 290;40;145;26;;12;;;show in new window; |
show_geom | show document button | 200;40;85;26;;;;;Show; |
msglabel_geom | status and message line | 5;310;590;26;;12;;;; |
hitchoice_geom | max. hits choice | 100;40;60;25;;12;;;; |
maxhitslabel_geom | max. hits label | 25;40;75;25;;12;;;Show best; |
All status messages that SearchApplet shows could be changed to customize applet for user's need or language. The following table shows Quest Agent applet parameter names and default message values.
|
|
MSG_WAIT | Searching... |
MSG_NO_MATCHES | No matches. |
MSG_COUNT | Hits: |
MSG_ERROR | Error. |
MSG_BAD_QUERY | Bad query. |
To display query results QuestAgent uses default "HitNumber. DocumentTitle" format. However, this format could be changed using the result_format applet parameter. For example, if you insert the following line into your search page QuestAgent will display all hits in the "DocumentTitle (FileLength)" format.
<PARAM NAME="result_format" VALUE="%D (%L)">
Supported format directives are:
Directive
|
Meaning
|
%N | Hit Number |
%D | Document Title |
%L | File Length |
%R | Hit Relevance |
Example: Using QuestAgent
If you've already indexed your document collection you are ready to prepare your first search page:
<APPLET CODE="com.jobjects.quest.SearchApplet.class" width=600 height=300>
<PARAM NAME="IndexFile" VALUE="mydata/index.quest">
<PARAM NAME="start_geom" VALUE=";;;;;;;;Start;">
<PARAM NAME="MSG_COUNT" VALUE="Number of hits:">
</APPLET>
You are ready to try QuestAgent. Open the page using your favorite browser.