本文介绍了SolR : NullPointerException 使用拼写检查.q 时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经发布了有关导致我出现此错误的问题,但我写了一些关于错误的更具体的内容:

I've already posted about a problem which brought me to this error, but I write it something more specific about the error:

当我在查询中使用拼写检查.q来定义拼写检查"的内容时,对于我尝试的每个配置,我总是遇到此错误:

When I use spellcheck.q in my query to define what will be "spellchecked", I always have this error, for every configuration I try:

java.lang.NullPointerException
at org.apache.solr.handler.component.SpellCheckComponent.getTokens(SpellCheckComponent.java:476)
at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:131)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:202)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

我的所有其他功能都很好用,这是唯一一个根本不起作用的东西,就在我添加&spellcheck.q=my%20sentence"时在查询中...

All my other functions works great, this is the only thing which doesn't work at all, just when I add "&spellcheck.q=my%20sentence" in the query...

有人已经解决了这个问题吗?

Has anyone already have solved this problem?

推荐答案

固定在trunk中.

所以从 SVN 或每晚构建获取最新代码.

So get latest code from SVN or a nightly build.

这篇关于SolR : NullPointerException 使用拼写检查.q 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-30 23:33