Creating a Custom Search Engine (CSE) / Create a Search Box for Your Department

To create a search that will display the results on the same page, use a Custom Search Engine (CSE).

There are many options for a CSE. These instructions will get you started with a basic CSE.

  1. Login to http://www.google.com/cse/ with a gmail account
  2. Click on "New Search Engine"
  3. Fill out the form
    1. Enter a Name, Description.
    2. Enter a site URL to search.

Click on "Learn more" for information about URL formatting.

You have created a new CSE. To hide ads:

  1. Click on "Look and feel".
  2. Click on "Business settings".
  3. Near the bottom of this page, under Preferences, change you Advertising status.
    Select "Do not show ads on results pages (for registered non-profits, universities, and government agencies only)."
  4. Click on "Save Changes".

You can test your new CSE by clicking on the "Preview" link or at the bottom of the "Look and feel" page

To display the search form on your page:

  1. Click on "Look and feel".
  2. Click on the "Get Code..." button.
  3. Click in the text box. The code will now be highlighted.
  4. Copy the code.
  5. Paste the code into your page.

To create a search that will display the results on a new page with the UH template, use Google's University Search.

If you'd like to include a search box that will only search within your department's pages, you might try including the form below. It uses Google's search engine, but limits the results to only matches within your department's directory or site. If you set this up and get no results, please contact us.

Copy the below text to your page and make the appropriate changes to the in url in the "hq" parameter:

The example html code below searches the /infotech directory:

<FORM METHOD="get" ACTION="http://www.hawaii.edu/site/scripts/search.php">
<INPUT TYPE=text name=q size=31 maxlength=255 value="" />
<INPUT type=submit name=sa VALUE="Go" />
<INPUT TYPE="hidden" NAME="hq" VALUE="inurl:www.hawaii.edu/infotech" />
</FORM>

 
Examples using Google's University Search, a free "product" that allows .edu sites to tailor a Google search to their specific domains/directories.
 


Search in:
University of Hawaii
UH Manoa
UH Hilo
Kapiolani Community College
School of Travel Industry Management
Entire Web


Search in /infotech:


Search in /infotech/policies:


Search in /admin:
 

 

Please rate the quality of this answer: PoorFairOkayGoodExcellent
Not the answer you were looking for? Try different keyword combinations and if you still can’t find your answer, please contact us.
Article ID: 711
Created: Wed, 14 Feb 2007 8:50am
Modified: Tue, 26 Apr 2011 3:42pm