lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JavaGuy84 <bbar...@gmail.com>
Subject Multi core Search is not working when used with SHARDS
Date Wed, 03 Mar 2010 21:23:41 GMT

Hi all,

I am trying to search on multiple cores (distributed search) but not able to
succeed using Shards.

I am able to get the results when I am hitting each core seperately,

http://localhost:8981/solr/core1/select/?q=test
http://localhost:8981/solr/core0/select/?q=test

but when I try to use distributed search using Shards as below

http://localhost:8981/solr/core0/select?shards=localhost:8981/solr/core0,localhost:8981/solr/core1&indent=true&q=test

I am getting the below error,

HTTP ERROR: 500
null

java.lang.NullPointerException
	at
org.apache.solr.handler.component.QueryComponent.createMainQuery(QueryComponent.java:372)
	at
org.apache.solr.handler.component.QueryComponent.distributedProcess(QueryComponent.java:292)
	at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:234)
	at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1323)
	at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:341)
	at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:244)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
	at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
	at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
	at org.mortbay.jetty.Server.handle(Server.java:285)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
	at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
	at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

RequestURI=/solr/core0/select

Powered by Jetty://

Do I need to make any changes to make the Shards work?

Thanks,
Barani

-- 
View this message in context: http://old.nabble.com/Multi-core-Search-is-not-working-when-used-with-SHARDS-tp27772726p27772726.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message