Northwestern University Library Home
StaffWeb Home - Staff Intranet for Northwestern University Library Royko Home - Staff SharePoint Site for Northwestern University Library
Search
Creating Custom Search Forms

Custom Search Forms for the University's Web Search Engine

It is possible to use the Inktomi Search to search within your web site. To do so you will need to place some HTML code in your page that invokes the search engine with a url: limit. For instance if you wanted to search within the IT Support Central web site you would use the code show below.

<form name="searchlib" method="get" action="http://search.northwestern.edu/query.html">
<input class="bodymono" name="qt" size="20">
<input type="submit" name="Submit" value="Search IT Support Central">
<input type="hidden" name="col" value="nwulibin">
<input type="hidden" name="qp" value="url:http://staffweb.library.northwestern.edu/it/">
</form>

The col value of "nwulibin" indicates that the StaffWeb collection should be searched.
The qp value (Query Prefix) is set to url:http://staffweb.library.northwestern.edu/it/


The code below will allow you to search within the Reference Department Site

<form name="searchlib" method="get" action="http://search.library.northwestern.edu/query.html">
<input class="bodymono" name="qt" size="20">
<input type="hidden" name="col" value="nwulib">
<input type="hidden" name="qp" value="url:http://www.library.northwestern.edu/reference">
<input type="image" border="0" name="submit" src="/Assets/search_button.gif" width="58" height="21" alt="Search">
</form>

Please note: hidden field "col" can contain the following values: nwulib www er sw


There are probably not too many instances where you would want to do a Query Prefix Search within all three collections. In that case you might want a "Search Everywhere" link. Below is the code to do this. The difference being that all three collections are in the "col" field and there is no "qp" field.

<form name="searchlib" method="get" action="http://search.library.northwestern.edu/query.html">
<input class="bodymono" name="qt" size="20">
<input type="hidden" name="col" value="nwulib er sw">
<input type="image" border="0" name="submit" src="/Assets/search_button.gif" width="58" height="21" alt="Search">
</form>


Here is another situation where you may want to search within a Topic or subject from the Content Classification Engine. To do this you will need to get a Topic ID (talk to DLSD staff about this). This example below will do a search within the english literature topic and anything under /collections/english on Library Site and the ER database.

<form name="searchlib" method="get" action="http://search.library.northwestern.edu/query.html">
<input class="bodymono" name="qt" size="20">
<input type="hidden" name="col" value="www er">
<input type="hidden" name="qp" value="topic:1251591218">
<input type="hidden" name="qp" value="url:http://www.library.northwestern.edu/collections/english">
<input type="image" border="0" name="submit" src="/Assets/search_button.gif" width="58" height="21" alt="Search">
</form>