beautypg.com

Disabling filtering for a front end, Disabling filtering for a search results page – Google Search Appliance Creating the Search Experience User Manual

Page 128

background image

Google Search Appliance: Creating the Search Experience

Advanced Customization Topics

128

6.

Make the following change to the code:

a

7.

Click Save XSLT Code.

The modified XSLT stylesheet takes effect after 15 minutes. To see the result immediately, you can add
&proxyreload=1 at the end of the search string and resubmit the search.

Disabling Filtering for a Front End

Google uses automatic duplicate snippet filtering and duplicate directory filtering in search results.
Duplicate snippet filtering is used to display only the most relevant document when multiple documents
contain identical titles as well as the same information in their snippets in response to a query.
Duplicate directory filtering is used to display only the two most relevant results for a directory when
there are many results in a single web directory.

You can disable duplicate snippet filtering and duplicate directory filtering for a search query by using
the query parameter filter=0, as described in Search Protocol Reference. In addition, the search appliance
supports disabling filtering for a front end by editing the XSLT stylesheet. See the following sections for
steps for:

“Disabling Filtering for a Search Results Page” on page 128

“Disabling Filtering for an Advanced Search Results Page” on page 128

After editing the XSLT stylesheet, you might have to reload the stylesheet to see your changes. See
“Reloading the XSLT Stylesheet” on page 129 for more information.

Disabling Filtering for a Search Results Page

To disable duplicate snippet filtering and duplicate directory filtering for a search results page:

1.

Open the XSLT stylesheet in an editor.

2.

Locate the element.

3.

Add the following XSLT code right before the closing tag .

The following example shows the modified code.


...

4.

Save your changes.

Disabling Filtering for an Advanced Search Results Page

To disable duplicate snippet filtering and duplicate directory filtering for a search results page:

1.

Open the XSLT stylesheet in an editor.