Customizing the Search Interface
Chapter
12
Using Search
281
There are pattern files for different kinds of collections: email, news, ASCII, PDF,
and HTML. There are several general types of pattern files, each of which has a
particular use. A file prefix designates which type of file the pattern file is for, for
example,
ASCII-record.pat
, or
EMAIL-record.pat
. The following list describes
the general pattern file types:
•
NS-query.pat
displays the standard and advanced query pages. Contains
HTML calling the Web Search (the “Search the Web” box) as part of the search
query page.
•
tocstart.pat
displays the header across the top of the search results page.
•
tocrec.pat
displays each document listed on the search results page.
•
tocend.pat
displays the footer across the bottom of the search results page.
•
record.pat
displays a single highlighted document from the search results
page (for more information, see “Displaying a Highlighted Document” on
page 270).
•
descriptions.pat
displays the collection contents.
The pattern files contain HTML formatting instructions, which define how
elements look; and HTML search arguments and variables, which define the text
label or value that is displayed.
There are three kinds of pattern variables (discussed further in “Using Pattern
Variables” on page 285):
•
User defined
, in the
userdefs.ini
file, with a
$$
prefix (see “User-defined
Pattern Variables” on page 285).
•
defined in the configuration files
,
dblist.ini
files, with a
$$NS-
prefix (for
more information, see “Configuration File Variables” on page 287).
•
search macros and variables generated by a pattern file
, with a
$$NS-
prefix
(for more information, see “Macros and Generated Pattern Variables” on
page 290).
The following lines from the standard query pattern file,
NS-query.pat show
how
these work together:
<input type="hidden" name="NS-max-records"
value="$$NS-max-records">
<td align=left colspan=2>$$logo</td>
<td align=right><h3>$$sitename</h3></td>
Summary of Contents for NETSCAPE ENTREPRISE SERVER 6.0 - ADMINISTRATOR
Page 1: ...Administrator s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 18: ...18 Netscape Enterprise Server Administrator s Guide November 2001...
Page 26: ...26 Netscape Enterprise Server Administrator s Guide November 2001...
Page 48: ...Migrating a Server 48 Netscape Enterprise Server Administrator s Guide November 2001...
Page 50: ...50 Netscape Enterprise Server Administrator s Guide November 2001...
Page 146: ...146 Netscape Enterprise Server Administrator s Guide November 2001...
Page 242: ...242 Netscape Enterprise Server Administrator s Guide November 2001...
Page 294: ...294 Netscape Enterprise Server Administrator s Guide November 2001...
Page 332: ...Deleting a Virtual Server 332 Netscape Enterprise Server Administrator s Guide November 2001...
Page 378: ...378 Netscape Enterprise Server Administrator s Guide November 2001...
Page 396: ...Responses 396 Netscape Enterprise Server Administrator s Guide November 2001...
Page 414: ...Posting to JSPs 414 Netscape Enterprise Server Administrator s Guide November 2001...
Page 432: ...Further Information 432 Netscape Enterprise Server Administrator s Guide November 2001...
Page 444: ...444 Netscape Enterprise Server Administrator s Guide November 2001...