I found I needed to change theme_apachesolr_image_snippet() to make it work. I haven't tested this fix on public files.
Index: modules/apachesolr/contrib/apachesolr_image/apachesolr_image.module
===================================================================
--- modules/apachesolr/contrib/apachesolr_image/apachesolr_image.module (revision 16910)
+++ modules/apachesolr/contrib/apachesolr_image/apachesolr_image.module (working copy)
@@ -46,7 +46,7 @@
}
function theme_apachesolr_image_snippet($item){
- return '<span class="apachesolr-image-result">'. theme('image', $item['node']->ss_image_relative, $item['title'], $item['title'], array('align' => 'left')) .'</span>'. $item['snippet'] . '<br clear="all"/>';
+ return '<span class="apachesolr-image-result">'. theme('image', file_create_url($item['node']->ss_image_relative), $item['title'], $item['title'], array('align' => 'left'), FALSE) .'</span>'. $item['snippet'] . '<br clear="all"/>';
}
Comments
Comment #1
pwolanin commentedcan you attach this as a patch?
Comment #2
jpmckinney commentedFixed. http://drupal.org/cvs?commit=359300
Comment #3
jpmckinney commentedActually, reverted. This will break public files.
In D6, theme_image does this:
With public files, file_create_url will return a URL that does not satisfy
url($path) == $path, so base_path() will be prepended.To fix image results for private files, you should implement theme_image:
Comment #4
jpmckinney commented