Customizing the Search Interface
444
Netscape Enterprise Server Administrator’s Guide
Macros and Generated Pattern Variables
There are some search macros that you can use in your pattern files or
decorated URLs, and the search function itself generates some pattern variables
that you can use in subsequent search requests to define how the later output is
to be displayed. These macros and variables have a prefix of
$$NS-
to indicate
their use.
For example, after doing an initial search query that results in 24 documents on
the results page, you can reuse the search-generated
$$NS-docs-matched
and the
$$NS-doc-number
variables to help define a document page
displaying one of the 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 16.10 Macros and generated pattern variables
Variable
Description
$$NS-collection-list
An HTML multiple select list of all the collections in
dblist.ini
where
NS-display-select
is set to YES.
$$NS-collection-list-
dropdown
An HTML drop-down list version of
NS-collection-list.
$$NS-collections-searched
The number of collections searched for this request.
$$NS-display-query
The HTML-displayable version of the query that is generated for a
results page.
$$NS-doc-href
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
.
$$NS-doc-name
The document’s name.
$$NS-doc-number
The sequence number of the document in the results page list.
$$NS-doc-path
The absolute path to the document.
$$NS-doc-score
The ranked score of the document (ranges 0 to 100).
$$NS-doc-score-div10
The ranked score of the document (ranges 0 to 10).
$$NS-doc-score-div5
The ranked score of the document (ranges 0 to 5).
Содержание Netscape Enterprise Server
Страница 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Страница 31: ...Part 1 Server Basics 31 1 Server Basics Introduction to Enterprise Server Administering Enterprise Servers ...
Страница 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Страница 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Страница 64: ...Migrating a Server From a Previous Version 64 Netscape Enterprise Server Administrator s Guide ...
Страница 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Страница 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Страница 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Страница 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Страница 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Страница 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Страница 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Страница 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Страница 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Страница 390: ...Customizing the Web Publisher User Interface 390 Netscape Enterprise Server Administrator s Guide ...
Страница 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Страница 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Страница 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Страница 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Страница 504: ...504 Netscape Enterprise Server Administrator s Guide ...