Chapter 16, Using Search
437
Customizing the Search Interface
•
NS-query
: Defined in this pattern file as the name of the input field.
$$NS-display-query
: Defined in the
userdefs.ini
file. The search
generates a variable from this field that can be used in subsequent searches
to determine which word or phrase to highlight when an entire matching
document is displayed.
Search Function Syntax
The search function uses standard URL syntax with a series of name-value pairs
for the search arguments. This is the basic syntax:
http://yourServer/search?name=value[&name=value][&name=value]
As you use the HTML search query and results pages, you can see search
functions and arguments displayed in the URL field of your browser. When
entered directly into the URL field, these are sometimes called
decorated URLs
.
You can also embed them in your pattern files with the HREF tag.
You can create a complete search function as an HREF element within a pattern
file. The example given is from the HTML-descriptions.pat file, which defined
how collection information is displayed. The following lines produce a heading
for each collection for the label (“Collection:”) and provides a link to the actual
collection file through the collection’s label (
NS-collection-alias
) that
was defined in the
dblist.ini
file.
<td colspan=6<font size=+2<b$$collectionLabel</b
<a href=$$NS-server-url/search?NS-collection=$$NS-collection$$NS-collection-
alias</a
</font</td
The HREF contains a complete search function by using the following
elements:
•
$$NS-server-url
: A search macro that determines the user’s server URL.
/search
: The search command itself.
•
?
: The query string indicator. Everything after the ? is information used by
the search function.
•
NS-collection=$$NS-collection
: This uses the search macro
$$NS-collection
to define the collection’s filename.
Содержание 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 ...