sa升級到wf后全文檢索功能都提示找不到模板文件
問題描述:從sa一直升級數(shù)據(jù)庫到wf版本后,前臺全文檢索基本都報(bào)404錯(cuò)誤,后臺異常日志會記錄找不到相關(guān)模板文件
解決方法:原因就是在sa下搜索模板路徑是_Common/FullTextSearch;而wf公版默認(rèn)是_Common/FulltextSearch;在linux下就存在大小寫問題,通過數(shù)據(jù)庫批量替換,兩張表
UPDATE PE_Common_SiteConfig
SET FulltextSearchConfig = REPLACE(
FulltextSearchConfig,
'_Common/FullTextSearch/Search/',
'_Common/FulltextSearch/Search/'
)
WHERE FulltextSearchConfig LIKE '%_Common/FullTextSearch/Search/%';
UPDATE PE_FulltextSearch_SearchItem
SET SearchResultListViewPath = REPLACE(
SearchResultListViewPath,
'_Common/FullTextSearch/Search/',
'_Common/FulltextSearch/Search/'
)
WHERE SearchResultListViewPath LIKE '%_Common/FullTextSearch/Search/%';
執(zhí)行完后去運(yùn)維中心清空數(shù)據(jù)緩存,重新查看后臺相關(guān)配置會發(fā)現(xiàn)已經(jīng)更正,前臺全文檢索功能正常。