Sample Query 2

Query:

Choose One Subtree:

Choose One or More Subtrees:


Notes

  1. 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.
  2. 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.
  3. 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).
  4. 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.
  5. Use of the phrase operator is important for URLs if you might need to use funny characters (like a tilde) in the URL.