shards and grouping

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

shards and grouping

ramires
hi

I use solr4 with four shards like that

http://x.x.x.x:8984/solr/arama4/select?shards=192.168.200.202:8984/solr/ar1/,192.168.200.202:8984/solr/ar2,192.168.200.202:8984/solr/ar3,192.168.200.202:8984/solr/ar4&q=table&facet=true&facet.field=site&f.site.facet.numFacetTerms=1&facet.mincount=1&facet.limit=-1&group=true&group.field=site

It`s works all querys well but with group querys it throws a error 500. Is grouping work in solr 4 ?

HTTP ERROR 500

Problem accessing /solr/arama4/select. Reason:

    null

java.lang.NullPointerException
        at org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:639)
        at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:536)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:331)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1308)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:353)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:248)
        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)


Reply | Threaded
Open this post in threaded view
|

RE: shards and grouping

Young, Cody
I received this error if the solr unique key was set to stored=false. Once I changed it to stored=true I stopped receiving this error.

Cody

-----Original Message-----
From: ramires [mailto:[hidden email]]
Sent: Tuesday, April 03, 2012 7:15 AM
To: [hidden email]
Subject: shards and grouping

hi

I use solr4 with four shards like that

http://x.x.x.x:8984/solr/arama4/select?shards=192.168.200.202:8984/solr/ar1/,192.168.200.202:8984/solr/ar2,192.168.200.202:8984/solr/ar3,192.168.200.202:8984/solr/ar4&q=table&facet=true&facet.field=site&f.site.facet.numFacetTerms=1&facet.mincount=1&facet.limit=-1&group=true&group.field=site

It`s works all querys well but with group querys it throws a error 500. Is grouping work in solr 4 ?

HTTP ERROR 500

Problem accessing /solr/arama4/select. Reason:

    null

java.lang.NullPointerException
        at
org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:639)
        at
org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:536)
        at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:331)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1308)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:353)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:248)
        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)




--
View this message in context: http://lucene.472066.n3.nabble.com/shards-and-grouping-tp3881069p3881069.html
Sent from the Solr - User mailing list archive at Nabble.com.