Can I control what goes to the snippet for the search result. (<S>)

1 view
Skip to first unread message

JP

unread,
Nov 4, 2009, 6:01:24 AM11/4/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Is it possible with googleon or something to control what is displayed
on in the snippet for the search result?

Example:

My page has a text area wrapped in <div id="text"> and I want first
characters from here to the search results snippet.

Mike

unread,
Nov 4, 2009, 6:20:06 AM11/4/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hello JP,

well, you already indicated the best option: googleon / googleoff.
http://code.google.com/apis/searchappliance/documentation/60/admin_crawl/Preparing.html#pagepart

indicates that the 'snippet' googleon/off would be the option you are
looking for.

If this does not achieve the results for you, you can fill the
description meta tag in the page with desired snippet texts. This will
automatically be used if either no content is found to generate a
snippet (i.e. no "q" parameter value provided for the search, all
content excluded for snippet). But you can also rewrite your frontend
xslt code to use the meta tag instead of the generated <s> tag.

Cheers
Mike

JMarkham

unread,
Nov 4, 2009, 10:51:16 AM11/4/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi,

Just an opinion, but years of research has gone into that snippet
generation, complete with bolded keywords. This is functionality that
users have become accustomed to. Changing this functionality
wholesale should only be done after careful consideration, and better
with lots of user acceptance testing. Much cleaner to remove bits you
don't want in the snippets with the googleoff/googleon tags.

Just a word of caution. :)

Jeff

Reply all
Reply to author
Forward
0 new messages