sa升级到wf后全文检索功能都提示找不到模板文件
来源:本站原创
点击数: 次
发布时间:2025年12月18日
问题描述:从sa一直升级数据库到wf版本后,前台全文检索基本都报404错误,后台异常日志会记录找不到相关模板文件
解决方法:原因就是在sa下搜索模板路径是_Common/FullTextSearch;而wf公版默认是_Common/FulltextSearch;在linux下就存在大小写问题,通过数据库批量替换,两张表
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/%';
执行完后去运维中心清空数据缓存,重新查看后台相关配置会发现已经更正,前台全文检索功能正常。
