This repository was archived by the owner on Jan 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsearch.html
More file actions
96 lines (92 loc) · 3.59 KB
/
search.html
File metadata and controls
96 lines (92 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--
* Copyright © 2003 Sun Microsystems, Inc
* All rights reserved.
* Notice of copyright on this source code
* product does not indicate publication.
*
* RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by
* the U.S. Government is subject to restrictions as set forth
* in subparagraph (c)(1)(ii) of the Rights in Technical Data
* and Computer Software Clause at DFARS 252.227-7013 (Oct. 1988)
* and FAR 52.227-19 (c) (June 1987).
* Sun Microsystems, Inc., 4150 Network Circle,
* Santa Clara, California 95054, U.S.A.
*
-->
<html>
<head>
<title>Full-Text Search</title>
<link rel="stylesheet" type="text/css" href="../jhug.css" title="Style">
</head>
<body bgcolor="#ffffff">
<h2><b>Full-text Search</b></h2>
<p>
The JavaHelp system includes a full-text search facility
that is fully-featured, compact, fast, and extremely
flexible. The JavaHelp system is shipped with a search
database indexer. Help authors use the search database
indexer to create a compact database that is distributed
with the application's help data. When a user initiates a
search, the search engine searches the database to
determine matches. Alternative search engines can be
substituted for the standard JavaHelp system search
engine.
<p>
The following scenarios illustrate some of the
different ways that the full-text search can
be used. Three scenarios are presented:
<ul type="circle">
<li>Standalone
</li><li>Client-side
</li><li>Server-side
</li>
</ul>
<h3>Standalone</h3>
<p>
In a standalone search, all of the components (search
engine, search database, and help topics) are local to the
application.
<p align="center">
<img alt="Standalone Search" src="../../images/standalone_search_scenario.gif" width="426" height="434">
</p>
<h3>Client-Side</h3>
<p>
From an implementation point-of-view, the client-side
search is identical to the previously described standalone
search except that the components are downloaded from a server.
This arrangement is common with browser-based
applications (applets), where the help data usually resides on
the same server as the applet code. When a search is
initiated, the search data is downloaded from the server,
read into the browser's memory, and searched. The topic
files are downloaded only when they are presented.<p>
<p align="center">
<img alt="Client-side Search" src="../../images/client_search_scenario.gif" width="426" height="435">
</p>
<p>
During the initial search, time is required to download the
search database. Once downloaded, the data can be kept in
memory or in a temporary file on the client machine and the
searches are quite fast.
<h3>Server-Side</h3>
<p>
In a server-side search, the search data, topic files, <i>and the search
engine</i> are all located on the server side - only the
results of the search are downloaded to the client.
<p align="center">
<img alt="Client-side Search" src="../../images/server_search_scenario.gif" width="426" height="452">
</p>
<p> This option also works well for applets. It permits developers to use alternate
search engines (for example, AlltheWeb, Google, or Lycos) and can be quicker
to start because the search database is not downloaded. (It is especially fast
if the search engine is already running on the server). Note that this approach
works very well with Java servlets.
<p>
<img src="../../images/hg_see.gif" width="18" height="13"><b>Next Overview Topic:</b>
<a href="jcomp.html">JavaHelp System Lightweight Components</a>
<p>
<!-- Return to <A HREF="../jhugTOC.html">table of contents</A> -->
<p>
</body>
</html>