Saturday, March 17, 2018

FW: Solr 6.6.3: Errors when using facet.field

-----Original Message-----
From: Jay Potharaju [mailto:jspotharaju@gmail.com]
Sent: 17 March 2018 02:38
To: solr-user@lucene.apache.org
Subject: Solr 6.6.3: Errors when using facet.field

Hi,
I am running a simple query with group by & faceting.

facet=true&group=true&group.facet=true&group.field=product_id&group.ngroups=
true&facet=true&facet.field=product_id&facet.mincount=1


When I run the query I get errors

<lst name="error">
<lst name="metadata">
<str name="error-class">org.apache.solr.common.SolrException</str>
<str name="root-error-class">java.lang.IllegalStateException</str>
<str
name="error-class">org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSo
lrException</str>
<str
name="root-error-class">org.apache.solr.client.solrj.impl.HttpSolrClient$Rem
oteSolrException</str>
</lst>
<str name="msg">Error from server at
http://localhost:9223/solr/test2_shard2_replica1: Exception during
facet.field: category_id</str>
<str
name="trace">org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrExce
ption:
Error from server at http://localhost:9223/solr/test2_shard2_replica1:
Exception during facet.field: category_id
at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClien
t.java:612)
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java
:279)
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java
:268)
at
org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1219)
at
org.apache.solr.handler.component.HttpShardHandler.lambda$submit$0(HttpShard
Handler.java:163)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(In
strumentedExecutorService.java:176)
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$e
xecute$0(ExecutorUtil.java:229)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
49)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
24)
at java.lang.Thread.run(Thread.java:748)
</str>
<int name="code">500</int>


The above query worked in solr 5.3. Any suggestions ?
Thanks
Jay Potharaju

No comments:

Post a Comment