Google Search Appliance Creating the Search Experience Instrukcja Użytkownika Strona 129

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 141
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 128
Google Search Appliance: Creating the Search Experience Advanced Customization Topics 129
2. Locate the following comment.
<!--====Advanced Search Options======-->
3. Add the following line before the comment.
<input type="hidden" name="filter" value="0"/>
The following example shows the modified code.
<input type="hidden" name="filter" value="0"/>
<!--====Advanced Search Options======-->
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:
<input type="hidden"
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.
Przeglądanie stron 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 140 141

Komentarze do niniejszej Instrukcji

Brak uwag