snippet size

14 views
Skip to first unread message

GoebelGroup

unread,
Sep 30, 2008, 2:34:01 PM9/30/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Can I change the snippet size in the searech results...if so how?

Thanks,

Dave

Thiru

unread,
Sep 30, 2008, 4:30:20 PM9/30/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
You can not change the snippet size. The appliance dynamically
generates the snippet based on the search term. However you can
display a meta tag value as a snippet result. It requires some work.

Question:

How to display metadata in the search results?

Answer:
Applies to: GSA 4.x/5.x, Mini 4.x/5.x

Displaying meta data in the search result pages involves two steps:

1. Add "getfields" parameter in the search string, e.g.,
&getfields=MYMETA. For details about this parameter, refer to the
"search protocol reference" on the support site:

Search Protocol Reference

2. Set the value of "show_meta_tags" to "1":
* In the admin console, go to Serving > Front Ends;
* click "edit" to edit the front end of your choice;
* Click "Edit underlying XSLT code" link in the "XSLT Stylesheet
Editor" box;
* set the value of show_meta_tags to 1, i.e., <xsl:variable
name="show_meta_tags">1</xsl:variable>;
* click on "Save XSLT Code" button.

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

Note that changes to the underlying XSLT will prevent further use of
the Page Layout Helper for that particular frontend.

Cheers,
Thiru

GoebelGroup

unread,
Oct 14, 2008, 8:56:39 AM10/14/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Thanks.

-Dave
Reply all
Reply to author
Forward
0 new messages