QnaList > Groups > Lucene-Solr-User > May 2012
faq

Error With Distributed Search And Suggester Component (Solr 3.4)

Hi list,
Does anybody know if the Suggester component is designed to work with shards?
I'm asking because the documentation implies that it should (since ...Suggester reuses much
of the SpellCheckComponent infrastructure…, and the SpellCheckComponent is documented as
supporting a distributed setup).
But when I make a request, I get an exception:
java.lang.NullPointerException
	at org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:493)
	at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:390)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:289)
	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:1157)
	at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
	at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	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:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	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:923)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Looking at the QueryComponent.java:493 code, I see:
        SolrDocumentList docs = (SolrDocumentList)srsp.getSolrResponse().getResponse().get("response");
        // calculate global maxScore and numDocsFound
        if (docs.getMaxScore() != null) {

asked May 1 2012 at 22:48

Ken Krugler's gravatar image



1 Replies for : Error With Distributed Search And Suggester Component (Solr 3.4)
I should have also included one more bit of information.
If I configure the top-level (sharding) request handler to use just the suggest component
as such:
      explicit
      suggest-core
      localhost:8080/solr/core0/,localhost:8080/solr/core1/
      suggest
Then I don't get a NPE, but I also get a response with no results.
    0
    0
      r
For completeness, here are the other pieces to the solrconfig.xml puzzle:
      true
      suggest-one
      10
      suggest
      suggest-one
      org.apache.solr.spelling.suggest.Suggester
      org.apache.solr.spelling.suggest.fst.FSTLookup
      name  
      0.05
      true
      suggest-two
      org.apache.solr.spelling.suggest.Suggester
      org.apache.solr.spelling.suggest.fst.FSTLookup
      content  
      0.0
      true
Thanks,
-- Ken

answered May 1 2012 at 23:28

Ken Krugler's gravatar image


Related discussions

Tagged

Group Lucene-solr-user

asked May 1 2012 at 22:48

active May 1 2012 at 23:28

posts:2

users:1

©2013 QnaList.com