在2.1.8的中文搜尋,在剛安裝完,尚未發生刪除文章的時候,中文搜尋都沒有出現問題。但當開始刪除文章後,中文搜尋便出現
org.apache.lucene.queryParser.ParseException: Cannot parse '': Encountered "EOF" at line 1, column 0.
Was expecting one of:
NOT ...
"+" ...
"-" ...
"(" ...
"*" ...
QUOTED ...
TERM ...
PREFIXTERM ...
WILDTERM ...
"[" ...
"{" ...
NUMBER ...
爬文看到安大關於2.1.7中文搜尋的文章,提到encoding設定及要在tomcat的server.xml中<Connector>不能加URIEncoding="UTF-8";但是我的tomcat上不只有Jforum還有其他的apps,不能拿掉URIEncoding,後來我嘗試在SystemGlobals.properties中,將default.container.encoding = ISO-8859-1 修改為default.container.encoding = UTF-8,再試搜尋功能,一切OK。