solr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gnandre <arnoldbron...@gmail.com>
Subject Re: Invalid query error when using rq param with a shards query
Date Wed, 09 Jun 2021 18:46:53 GMT
Please ignore, this was an issue with the incorrect values I was passing to
shards param.

On Wed, Jun 9, 2021 at 12:52 PM gnandre <arnoldbronley@gmail.com> wrote:

> Hi,
>
> I am using Solr 8.5.2 with the LTR feature enabled. I have successfully
> uploaded a trained model to Solr. When I add rq={!ltr model=model
> efi.query=$q reRankDocs=100} param to my regular search query, it works.
> But when I pass a shards param with a list of shards then I run into the
> following error. Any ideas why this might be the case?
>
> solr_1                               | 2021-06-09 16:45:41.126 ERROR
> (qtp128359175-19) [   x:add-ons] o.a.s.h.RequestHandlerBase
> org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException:
> Error from server at null: invalid query parser 'ltr' for query '{!ltr
> model=model efi.query=$q reRankDocs=100}'
> solr_1                               |  at
> org.apache.solr.client.solrj.impl.Http2SolrClient.processErrorsAndResponse(Http2SolrClient.java:734)
> solr_1                               |  at
> org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:401)
> solr_1                               |  at
> org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:753)
> solr_1                               |  at
> org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1290)
> solr_1                               |  at
> org.apache.solr.handler.component.HttpShardHandler.request(HttpShardHandler.java:208)
> solr_1                               |  at
> org.apache.solr.handler.component.HttpShardHandler.lambda$submit$0(HttpShardHandler.java:170)
> solr_1                               |  at
> java.util.concurrent.FutureTask.run(FutureTask.java:266)
> solr_1                               |  at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> solr_1                               |  at
> java.util.concurrent.FutureTask.run(FutureTask.java:266)
> solr_1                               |  at
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:180)
> solr_1                               |  at
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:210)
> solr_1                               |  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> solr_1                               |  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> solr_1                               |  at
> java.lang.Thread.run(Thread.java:748)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message