Skip to page content Home Hosting Development Tools & Services Help Desk    
 

Tools: Search

How to Configure Site Search

If you use the search form provided in the template starter page without modification, your form will use the default CBIS search engine scope, which includes all sites within the *.bsd.uchicago.edu domain. In order to target your search form to return results from your site only, you must do two simple things:

  1. Request that CBIS create a collection for your site.
  2. Once the collection has been setup CBIS will provide you with the name to use (generally this will match your site name). Configure your search form to use the collection by name. An example is below.
  3. (Optional) You can provide CBIS with a logo image and a custom footer if desired to partially maintain your site's 'look and feel'.

The form action and inputs are required.


Search syntax for a general BSD-wide search (not site specific)

                            <form method="get" id="gs" class="gs" action="http://adm-search.uchospitals.edu/search">
                                <input type="text" name="q" size="12" maxlength="100" value="" class="formInput" />
                                <input type="image" src="img/button_search.gif" class="imgover" alt="Search this site" align="absmiddle" />
                            </form>
                        

Example searching all of BSD (you will see results from different sites with the BSD):

 

Search syntax with a site restriction (limited to your_collection_name)

                        <form method="get" id="gs" class="gs" action="http://adm-search.uchospitals.edu/search">
                            <input type="text" name="q" size="12" maxlength="100" value="" class="formInput" />
                            <input type="image" src="img/button_search.gif" class="imgover" alt="Search this site" align="absmiddle" />
                            < type="hidden" name="site" value="your_collection_name" />
                        </form>
                    

Example searching with a site restriction, in this case pritzker.uchicago.edu (all results will come from pritzker.uchicago.edu):

 

Search syntax with a site restriction and a custom results page

                        <form method="get" id="gs" class="gs" action="http://adm-search.uchospitals.edu/search">
                            <input type="text" name="q" size="12" maxlength="100" value="" class="formInput" />
                            <input type="image" src="img/button_search.gif" class="imgover" alt="Search this site" align="absmiddle" />
                            <input type="hidden" name="site" value="your_collection_name" />      
                            <input type="hidden" name="client" value="your_collection_name" />
                            <input type="hidden" name="output" value="xml_no_dtd" />
                            <input type="hidden" name="proxystylesheet" value="your_collection_name" />
                        </form>
                    

Example searching with a site restriction and a custom results page, in this case pritzker.uchicago.edu (all results will come from pritzker.uchicago.edu, and will be 'branded' with The Pritzker School of Medicine look and feel):