I came across an issue in Portal 8001 WCM Search, where the customer said the AttributeResource tag with "contentpath" attribute [AttributeResource attributeName="contentpath"] always returns blank. On further analysis, I saw that "contentpath" is an attribute that is generated during WCM Seedlist Indexing. The WCM tag returns the search results by fetching the attributes from WCM Search Index directory. It is found that during Indexing, WCM is not collecting the "contentpath" attribute for all the contents in the repository. You can find this behavior, by specifying the seedlist WCM URL in the browser and viewing the atom entries. None of the atom entries have the element : <wplc:field id="contentpath">.
This behavior has occurred due to a configuration property in "WCM WCMConfigService". In the customer's system, customer has set the property value for "searchservice.searchseed.excludefields" in "WCM WCMConfigService" in WAS Admin Console. You can verify the properties in WCM WCMConfigService :
1. Go to WAS Admin console : Resource environment providers > WCM WCMConfigService > Custom properties. Edit the property "searchservice.searchseed.excludefields" and remove the value "contentpath,parentcontentpath", if specified and save the property. Save changes to master configuration.
2. Restart Portal Server.
3. Do a full crawling of WCM Content Source again by clicking the icon "Regather documents from content source". This may take several minutes. Wait till the crawler collects documents and stops running. This can be checked by clicking Refresh button and Documents count is greater than 0.
After the above configuration changes, verify that the AttributeResource tag works fine for "contentpath" attribute.