Hmm, an NPE is weird in any case, but assuming “ids” is a field, your syntax
is wrong
q=ids:111|222

or 
q=ids: (111 222) would do too.

Are you sure you used this syntax before? Or is it a typo?
Erick

> On Sep 3, 2020, at 1:02 PM, Louis <richkingmyst...@gmail.com> wrote:
> 
> We are using SolrCloud 7.7.2 and having some trouble with multi shards.
> 
> The initial number of shards in the collection was one(and 3 replica), and
> we have recently split a shard into 4 shards(and 3 replica for each shard)
> by using API call :
> /admin/collections?action=SPLITSHARD&collection=name&shard=shardID
> 
> And now this query,
> "https://hostname:8983/solr/my_collection/select?ids=169455599|1" , is
> returning NPE, which was working before multi shards.
> 
> Could you please give any advice on why select query on multiple IDs doesn't
> work after shart splitting?
> 
> 
> null:java.lang.NullPointerException
>       at
> org.apache.solr.handler.component.QueryComponent.unmarshalSortValues(QueryComponent.java:1034)
>       at
> org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:885)
>       at
> org.apache.solr.handler.component.QueryComponent.handleRegularResponses(QueryComponent.java:585)
>       at
> org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:564)
>       at
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:426)
>       at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
>       at org.apache.solr.core.SolrCore.execute(SolrCore.java:2551)
>       at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:710)
>       at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516)
>       at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:395)
>       at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:341)
>       at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
>       at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
>       at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
>       at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
>       at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>       at
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
>       at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)
>       at
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
>       at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
>       at
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
>       at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
>       at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
>       at
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
>       at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
>       at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
>       at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
>       at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
>       at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>       at
> org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
>       at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>       at org.eclipse.jetty.server.Server.handle(Server.java:502)
>       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
>       at
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
>       at
> org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
>       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
>       at
> org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:411)
>       at
> org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:305)
>       at
> org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159)
>       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
>       at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
>       at
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
>       at
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
>       at
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
>       at
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
>       at
> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
>       at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
>       at
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
>       at java.lang.Thread.run(Thread.java:748)
> 
> 
> 
> --
> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to