Drupal 7, displaying an image to search results I have a content type called "people". When a search is made and one of the search results is of "people" type, I want to display two fields of the "people" type; an image called "photo", and a text filed called "email".

Under "Manage Display" of the "people" content type, I selected custom display types and selected "Search Result" box. After saving, I selected the new "Search result" button and hid all other fields except "photo" and "email". I then customized the photo to have image style of "thumbnail".

I saved, cleared the cache, and reindexed the site. The search results are correct but no images are shown. I am very new to Drupal; all the help I could find is for Drupal 6 and by reading the comments people say that the solutions shown do not work for Drupal 7.
This is a core issue. See http://drupal.org/node/1166114.

Workaround is to add this to your theme's template.php. Also copy search-result.tpl.php from the core search module into your theme folder and clear cache. 

function YOURTHEME_preprocess_search_result(&amp;$variables) {
  $result = $variables['result'];
  if (isset($result['node'])) {
    $variables['snippet'] = $result['node']-&gt;rendered;
  }
}


The rendered node will pick up the Manage Display settings.