The item has been truncated in the index because it exceeds the maximum size

You might stumble upon the g warning “The item has been truncated in the index because it exceeds the maximum size." while crawling enterprise search in SharePoint environment.


To avoid this avoid this, you need to increase the metadata property "MaxCharactersInPropertyStoreForRetrieval"

$ssa = Get-SPEnterpriseSearchServiceApplication
$mp = Get-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $ssa -Identity "PublishingPageContentOWSHTML"
$mp.MaxCharactersInPropertyStoreForRetrieval = 2097152
$mp.Update()
 
Happy Share Pointing :-)