beautypg.com

Reloading the xslt stylesheet, Reference, Optional example materials – Google Search Appliance Creating the Search Experience User Manual

Page 129: Setting up the example

background image

Google Search Appliance: Creating the Search Experience

Advanced Customization Topics

129

2.

Locate the following comment.

3.

Add the following line before the comment.


The following example shows the modified code.

4.

Save your changes.

Reloading the XSLT Stylesheet

After saving the stylesheet, you might need to add &proxyreload=1 to the search URL to reload the
XSLT stylesheet.

View the source of the search page to see that it includes the following tag: name="filter" value="0">.

Reference

This section contains reference materials, including information on setting up and comparing the
example pages and resources.

Optional Example Materials

You do not need to set up the example materials in order to read and understand the custom code, but
it may be helpful to see the customizations in the same context described in this document. Depending
on whether you begin with index.html or iframe_index.html, the example site demonstrates the
customizations depicted in the “HTML Form Example Page” on page 113 or the “Inline Frame Example
page” on page 114.

Setting up the Example

To view the search functionality of the example site, you must deploy the example web pages in a web
server and implement the example stylesheets in a search appliance.

To set up the materials for testing in your search appliance:

1.

Copy the example web pages, images and CSS stylesheet to a web server.

2.

In the example files, search and replace all references to appliance_hostname with the host name
of your search appliance.

3.

In the example files, search and replace all references to webserver_hostname with the host name
of your web server.

4.

Crawl the folder containing these materials.

5.

Create copies of the example stylesheets, and remove the .txt extension from the filenames. For
example, example-frontend_stylesheet.en.xslt.txt becomes example-frontend_stylesheet.en.xslt.