Wednesday, February 6, 2013

SharePoint 2010 - Problem in image result thumbnail within search result form a NON default Zone.

There is a problem on the preview of images that are displayed as a search result if this is carried out by an outer zone (therefore using an Alternate Access Mapping). The preview always points to the default AAM and as a result is not displayed.

Basically what needs to be done to solve the problem is to update the property "UseAAMMapping" of the managed property "PictureThumbnailURL."

To do this, simply run the powershell script below.

$searchapp = Get-SPEnterpriseSearchServiceApplication (get-spenterprisesearchserviceapplication)

$property = Get-SPEnterpriseSearchMetadataManagedProperty –SearchApplication $searchapp –Identity "PictureThumbnailURL"

$property.UseAAMMapping = $true

$property.Description = "Some Description" # Need to update this for commit to work properly

$property.Update()

$searchapp.Update()

You do not need to re-crawl content.

The curious thing is that before setting the property to "true", if you check the value you see that is already set correctly.

You can read full story here:
http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/173bece0-1fac-43c3-ad2d-ef796cc8371a/

No comments: