Sample Query 2
Notes
- This example shows how to make it easy for
a user to narrow a search. In addition to the general query
field, there is another input field to specify which directory
subtree (i.e. URLs) to search.
- The field to limit the search
to a given set of URLs is a <SELECT> box.
This could have been some other HTML widget, such as an
<INPUT> field, if you wanted.
- The important thing about the URL selection widgets are the
NAME attributes. You should VIEW DOCUMENT SOURCE
to see the details. Note that it is important to know the
name of the search field (i.e. URL in this case).
- Ok, so you noticed there are two boxes for selecting URLs.
This is only for illustration purposes; in practice you would
only have one. The first box only lets you make a single
selection, and uses the phrase operator.
The second box lets you make multiple choices; it uses
the phrase operator for each selection, but uses the
OR operator to combine the multiple selections.
- Use of the phrase operator is important for URLs if you
might need to use funny characters (like a tilde) in the URL.