Incorporating "Search This Site" Functionality Into Your Website
With the addition of an HTML form you can enable users to search your website and find your Web pages/documents.
Here is a sample form for the fictitious website at forestry.nd.edu:
<form method='get' action='http://search.nd.edu/search'>
<input type='hidden' name='as_sitesearch' value='forestry.nd.edu' />
<input type='hidden' name='client' value='default_frontend' />
<input type='hidden' name='output' value='xml_no_dtd' />
<input type='hidden' name='proxystylesheet' value='default_frontend' />
<input type='hidden' name='site' value='default_collection' />
<input type='text' name='q' />
<input type='submit' value='Search' />
</form>
To make this form work for you change "forestry.nd.edu" to the name of your website. Do not include "http://". Do not include trailing slashes (/). Do not specify specific file names. You can specify subdirectories.
Here are examples of valid website specifications:
- president.nd.edu
- vocation.nd.edu
- www.nd.edu/~biology
- nd.edu/~gender
- www.business.nd.edu/IA
Here are examples of invalid specifications:
- http://www.nd.edu/~forestry (includes "http://")
- www.nd.edu/vetschool/ (includes a trailing slash)
- nd.edu/textiles/conference.pdf (points to a specific file)
For more information about the campus-wide search engine such as how it works, what it indexes, and how you can allow or dis-allow it to crawl your site, see the About The Campus-Wide Search Engine page.

