Include image/thumbnail link in results

lrobeson - September 24, 2009 - 21:01
Project:Google Search Appliance
Version:6.x-2.0-beta1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

We use the GSA module for our e-commerce site and the #1 request/complaint we've had is that there are no thumbnails in the search results. We have over 6,000 items so it's understandable our customers would want a little help finding the right item, the Search feature is probably the most important part of the site.

I'm very new to using/customizing our Google Mini (as well as Drupal) but I've been following the instructions here to add images to the search results:
http://code.google.com/apis/searchappliance/documentation/60/admin_searc...

I was able to edit the XSLT code as instructed and add the meta tag to my test item page, so the thumbnail shows up when I access the search page directly (see attached screenshot). I do have to manually append "&getfields=*" to the search URL, I'm not sure how to have that added automatically.

I'm not sure where to begin getting this to work within the GSA module. First I need "&getfields=*" to be included in the URL and then the meta tags need to be incorporated. I'd very much appreciate some guidance with this, I have no doubt it's a feature many others would love to have included in their search results as well!

Thank you.

AttachmentSize
Screen shot 2009-09-24 at 4.49.36 PM.png129.61 KB

#1

lrobeson - September 25, 2009 - 18:24
Status:active» closed

We were able to incorporate the thumbnail images in a less complicated way, including some php in the search-result.tpl.php file. I guess this issue can be closed, unless it's a request that others have as well?

#2

larskleiner - October 1, 2009 - 15:22
Status:closed» active

The theme that's adding the meta tags will need to be overridden to get images or thumbnails displayed in the search results.

theme_google_appliance_add_meta_tags generates the meta tags for the html headers that in turn get crawled by GSA. This theme is what you'd need to override to get a thumbnail meta tag added to your node view:

$meta_data[] = array('thumbnail', $node->thumbnail);

You'll need to make sure $node->thumbnail holds the thumbnail image link.

 
 

Drupal is a registered trademark of Dries Buytaert.