beautypg.com

Modifying the search query – Google Search Appliance Creating the Search Experience User Manual

Page 118

background image

Google Search Appliance: Creating the Search Experience

Advanced Customization Topics

118

This approach is used in the “HTML Form Example Page” on page 113. The HTML form in this example
page collects the search terms in a custom search box, submits them to the search engine, and then
directs the results page to open in the inline frame “FlyFrame” as specified by the target attribute in the
form tag:

target="FlyFrame" action="http://appliance_hostname/search">

When using this approach, you may prefer to remove redundant search boxes from the results page by
setting the XSLT stylesheet variables show_top_search_box and show_bottom_search_box to zero.

A production web site using a form box and inline frame at the time of writing is Toolfetch.com:

Modifying the Search Query

You may prefer to use the default Google search and results pages, but with a degree of customization.
This section describes two modifications to the default search query experience: using a checkbox for
secure search, and adding query parameters to a front end. Both of these customizations make only
slight changes in the visual effect and behavior of the default search box.

Replacing the Secure Search Radio Button with a Check
Box

Using a check box for secure search saves space on the search query page and gives it a cleaner look.
The following screen capture from iframe_index.html depicts a customized search box in place of the
default radio buttons: