I want to show image in my solr search result page. For that, I have created one field in my content type called media.

In db, Images are saving in field_data_field_media table in the form of field_media_value

Any help very much appreciated.

Best, Latika

  • Can you please add tag of Drupal version. – Adil Ech-charafi May 27 '19 at 14:19

Have you considered helping yourself with this similar question?

showing an image field from solr index on custom solr search page

To display image in your search-result.tpl.php you can follow below link also.


| improve this answer | |
  • I tried both. It's not working for me. Mu image is not in CCK editor. I have created one field. How I get this image/image path/nid ? – latikas Jun 24 '14 at 9:02
  • Are you saying that you are not getting image field which you have indexed for content type in search results in solr? Is your relation correct there? – Parwan Singh Bisht Jun 24 '14 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.