Macros And Generated Pattern Variables - Netscape ENTREPRISE SERVER 6.0 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Customizing the Search Interface

Macros and Generated Pattern Variables

There are some search macros that you can use in your pattern files or decorated
URLs. The search function itself generates some pattern variables you can use in
subsequent search requests to define how output is to be displayed. These macros
and variables have a prefix of
For example, after doing an initial search query that results in 24 documents on the
results page, you can reuse the search-generated
$$NS-doc-number
documents in detail. In this way, you can tell the user that this document is number
3 of 24 documents returned for the original search.
The search macros and the generated variables that you can use in a subsequent
pattern file or decorated URL are listed the following table:
Table 12-10 Macros and generated pattern variables
Variable
$$NS-collection-list
$$NS-collection-list-dropdow
n
$$NS-collections-searched
$$NS-display-query
$$NS-doc-href
$$NS-doc-name
$$NS-doc-number
$$NS-doc-path
$$NS-doc-score
$$NS-doc-score-div10
$$NS-doc-score-div5
$$NS-doc-time
290
Netscape Enterprise Server Administrator's Guide • November 2001
to indicate their use.
$$NS-
variables to help define a document page displaying one of the
Description
An HTML multiple select list of all the collections in dblist.ini
where NS-display-select is set to YES.
An HTML drop-down list version of NS-collection-list.
The number of collections searched for this request.
The HTML-displayable version of the query that is generated for a
results page.
The HTML HREF tag for the document. This provides a URL to
the original source document. For email, this is in the form
mailbox:/boxname?id-messageID and for news, it is in the
form news:messageID.
The document's name.
The sequence number of the document in the results page list.
The absolute path to the document.
The ranked score of the document (ranges 0 to 100).
The ranked score of the document (ranges 0 to 10).
The ranked score of the document (ranges 0 to 5).
The creation time for a document in the results list.
value, you must set
it is set to NO, since system statistics are expensive.
$$NS-docs-matched,
NS-use-system-stat
and the
To obtain this
=
.
By default
YES

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape management system 6.0

Table of Contents