Distributed queries:
curl 'http://devxen0:8983/solr/core0/select?
shards=search3:0,search3:8983/solr/
core2&version=2.2&start=0&rows=10&q=instance%3Arit%5C-
csm.symplicity.com+AND+label%3ALogin&wt=php'
curl 'http://devxen0:8983/solr/core0/select?
shards=search3:0,search3:8983/solr/
core2&version=2.2&start=0&rows=10&q=instance%3Arit%5C-
csm.symplicity.com+AND+label%3ALogin&wt=xml
curl 'http://devxen0:8983/solr/core0/select?
shards=search3:0,search3:8983/solr/
core2&version=2.2&start=0&rows=10&q=instance%3Arit%5C-
csm.symplicity.com+AND+label%3ALogin&wt=json''
All work fine, providing identical results in their respective formats
(note the change in the wt param).
curl 'http://devxen0:8983/solr/core0/select?shards=search3:8983/solr/
core0,search3:8983/solr/core2&version=2.2&start=0&rows=10&q=instance
%3Arit%5C-csm.symplicity.com+AND+label%3ALogin&wt=phps'
fails with:
java.lang.IllegalArgumentException: Map size must not be negative
at
org
.apache
.solr
.request
.PHPSerializedWriter.writeMapOpener(PHPSerializedResponseWriter.java:
195)
at
org
.apache
.solr.request.JSONWriter.writeSolrDocument(JSONResponseWriter.java:392)
at
org
.apache
.solr.request.JSONWriter.writeSolrDocumentList(JSONResponseWriter.java:
547)
at
org
.apache
.solr.request.TextResponseWriter.writeVal(TextResponseWriter.java:147)
at
org
.apache
.solr
.request.JSONWriter.writeNamedListAsMapMangled(JSONResponseWriter.java:
150)
at
org
.apache
.solr
.request
.PHPSerializedWriter.writeNamedList(PHPSerializedResponseWriter.java:71)
at
org
.apache
.solr
.request
.PHPSerializedWriter.writeResponse(PHPSerializedResponseWriter.java:66)
at
org
.apache
.solr
.request
.PHPSerializedResponseWriter.write(PHPSerializedResponseWriter.java:47)
at
org
.apache
.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)
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)
Questions:
1) Is this known? I didn't see it in the issue treacker.
2) What's the better course of action: a) download source, fix, submit
patch, wait for new relase; b) drop phps and use json instead?
Thanks