请问老师,关于Jdon搜索的问题

06-01-01 edin

彭老师,您好

我的问题是这样的,

google了很多高手的资料,还是没解决问题,所以来问老师了~_~

我用的是Jdon2.5版本的,在输入中文搜索的时候,能显示被检索出的帖子链接,但是打开链接却出现异常,但是输入英文的话,一切正常。请问老师这是什么原因?如何解决?谢谢老师!

异常

org.apache.oro.text.MalformedCachePatternException: Invalid expression: \b(?|?|?|?)\b

Sequence (?|...) not recognized

at org.apache.oro.text.GenericPatternCache.getPattern(Unknown Source)

at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source)

at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source)

at com.jivesoftware.util.StringUtils.highlightWords(StringUtils.java:666)

at org.apache.jsp.threadMode1_jsp._jspService(org.apache.jsp.threadMode1_jsp:753)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)

at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)

at org.apache.jsp.thread_jsp._jspService(org.apache.jsp.thread_jsp:130)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)

at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:652)

at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)

at java.lang.Thread.run(Unknown Source)

banq
2006-01-02 20:57

这是lucene的词语解析器问题,已经有解决方案,blogchina.com的搜索就采取的这种解析器,Jdon论坛在新开发出,会更新的,老的就暂时没有修改。

edin
2006-01-03 10:52

谢谢老师

期待更好的Jdon论坛

powlliu
2006-01-16 10:55

期待