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

Method A:  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 with a gmail account
  2. Click on "New Search Engine"
  3. Fill out the form
    1. Enter a site URL to search.
    2. Enter a name for this search engine.
  4. Click on the "CREATE" button.

To display the search form on your page:

  1. Click on "Look and feel".
  2. Select a template.
  3. Click on the "Save & Get Code" button.
  4. On the resulting page, click in the grey text box. The code will now be highlighted.
  5. Copy the code.
  6. Paste the code into your page.

Method B:  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:

    <div id="google_form">

    <!-- Google CSE Search Box Begins -->

      <form id="searchbox_008945998903415758105:4nrwh9-26ni" action="">

        <input type="hidden" name="cx" value="008945998903415758105:4nrwh9-26ni" />

        <input type="hidden" name="cof" value="FORID:11" />

        <input name="q" type="text" size="40" />

        <input type="submit" name="sa" value="Search" />

        <input type="hidden" name="hq" value="" />


      <script type="text/javascript" src=""></script>

    <!-- Google CSE Search Box Ends -->


    <div id="google_results">

    <!-- Google Search Result Snippet Begins -->

      <div id="results_008945998903415758105:4nrwh9-26ni"></div>

      <script type="text/javascript">

        var googleSearchIframeName = "results_008945998903415758105:4nrwh9-26ni";

        var googleSearchFormName = "searchbox_008945998903415758105:4nrwh9-26ni";

        var googleSearchFrameWidth = 750;

        var googleSearchFrameborder = 0;

        var googleSearchDomain = "";

        var googleSearchPath = "/cse";


      <script type="text/javascript" src=""></script>

    <!-- Google Search Result Snippet Ends -->




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


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: Fri, 27 Mar 2015 1:38pm