SitecorePowerShell / Console

Sitecore PowerShell Extensions
https://doc.sitecorepowershell.com/
Other
114 stars 70 forks source link

Incompatible scripts with Sitecore 8.2 #701

Closed rootix closed 7 years ago

rootix commented 8 years ago

Hi

Sitecore removed the support for the old Search API starting with Sitecore 8.2

At least the following script isn't working anymore in this version:

/sitecore/system/Modules/PowerShell/Script Library/System Maintenance/Tasks/Rebuild search indexes

Probably there are more affected scripts (Cache API, Search API, usage of IsPageEditor and so on).

AlexKasaku commented 8 years ago

Thanks for raising this, there are quite likely others that may be affected. For that particular script, you can use the included Rebuild content search indexes task which uses Sitecore.ContentSearch.ContentSearchManager

AdamNaj commented 7 years ago

Mentioned script removed. It's obsolete since 7.0 - I think it's safe to not support the old API now. Also while at it I did a review of some other Search scripts and removed them slightly... like the Rebuild on Index Viewer report. Now shows update progress.