Was working from sharepointblogs.com instructions trying to get Thumbnails from an Assetlibrary to be displayed in an Searchresultspage, but couldnt get the thumbs to stick.
Finally I tried removing “contentypeforsearch.=’image’ frome the xsl-customizations and it started working right away. Somehow the images in my results wasn’t interpreted as images. Maybe the .jpg filetype needs to added manually or something.
In this case, its a Imagesearch result page so the results are always images.
It works, im happy. customer happy. Done.
Before:
<xsl:when test="contenttypeforsearch[. = 'Image'] and contentclass[. = 'STS_ListItem_851']">
After:
<xsl:when test="contentclass[. = 'STS_ListItem_851']">
References:
http://www.sharepointblog.com/2010/11/image-content-type-thumbnails-in-2010.html – the moneyshot
http://www.ableblue.com/blog/archive/2008/08/30/sharepoint-image-search-part-2/ – a bit old, still generally informational.
http://www.novolocus.com/2008/05/22/showing-thumbnails-in-search/
http://blogs.technet.com/b/anneste/archive/2008/11/25/mystery-solved-crawled-properties-in-sharepoint-part-5.aspx – details regarding how the crawling properties works.
No comments:
Post a Comment