带有重音字符的全局搜索在我的 4.2.c 安装中无法开箱即用,但是当我进行一些开发修改和 JVM 修改时,当我开始着手寻找原因并解决问题时几天后发布它以某种方式开始工作。但是,我无法在我的远程服务器上解决或复制该解决方案。查看运行相同搜索的两个存储库服务器(相同的内容存储)的登录,我得到以下信息:
本地(使用 oracle JDK 1.7.0_25 运行 tomcat 7 的 OSX 10.7.5):
//The request
2013-09-15 22:57:50,835 DEBUG [webscripts.servlet.WebScriptServlet] [http-bio-9090-exec-13] Processing request (GET) http://localhost:9090/alfresco/s/slingshot/search?site=&term=approuv%C3%A9&tag=&maxResults=251&sort=&query=&repo=false&rootNode=alfresco%3A%2F%2Fcompany%2Fhome&alf_ticket=TICKET_a6d529d90810dc9c3844d50ef561340640a9bea9
//The logs showing the query
2013-09-15 22:57:50,839 DEBUG [web.scripts.RepositoryContainer] [http-bio-9090-exec-13] Begin retry transaction block: required,readonly
2013-09-15 22:57:50,839 DEBUG [extensions.webscripts.DeclarativeWebScript] [http-bio-9090-exec-13] Executing script classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/search/search.get.js
2013-09-15 22:57:50,840 DEBUG [jscript.RhinoScriptProcessor.calls] [http-bio-9090-exec-13] search.get.js Start
2013-09-15 22:57:50,841 DEBUG [repo.jscript.ScriptLogger] [http-bio-9090-exec-13] Unable to resolve specified root node reference: alfresco://company/home
2013-09-15 22:57:50,841 DEBUG [repo.jscript.ScriptLogger] [http-bio-9090-exec-13] Query:
((PATH:"/app:company_home/st:sites/*/*//*" AND (approuvé AND (+TYPE:"cm:content" +TYPE:"cm:folder"))) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden"
Sortby:
2013-09-15 22:57:50,843 DEBUG [repo.jscript.Search] [http-bio-9090-exec-13] query=((PATH:"/app:company_home/st:sites/*/*//*" AND (approuvé AND (+TYPE:"cm:content" +TYPE:"cm:folder"))) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden" limit=502
2013-09-15 22:57:50,923 DEBUG [repo.jscript.ScriptLogger] [http-bio-9090-exec-13] Processing resultset of length: 10
远程(使用 orale jdk build 1.7.0_21 运行 tomcat 7 的 ubuntu 12.04):
//Requests are identical so skipped for brevity
//The query log
2013-09-15 22:53:29,075 DEBUG [repo.jscript.ScriptLogger] [http-bio-8080-exec-9] Query:
((PATH:"/app:company_home/st:sites/*/*//*" AND (approuvé AND (+TYPE:"cm:content" +TYPE:"cm:folder"))) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden"
Sortby:
2013-09-15 22:53:29,076 DEBUG [repo.jscript.Search] [http-bio-8080-exec-9] query=((PATH:"/app:company_home/st:sites/*/*//*" AND (approuvé AND (+TYPE:"cm:content" +TYPE:"cm:folder"))) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden" limit=502
2013-09-15 22:53:29,108 DEBUG [repo.jscript.ScriptLogger] [http-bio-8080-exec-9] Processing resultset of length: 0
webscripts 请求几乎相同(票号除外),但本地编码的重音字符被转换回其原始形式,这让我相信这可能是 JVM 的问题。所以我将JVM(JAVA_OPTS)的语言环境设置为法语,但这没有产生任何结果。将不胜感激任何提示或建议,我可以检查什么来比较两者。