在solr中使用facet搜索时未定义的归档异常

时间:2018-05-17 06:24:50

标签: java solr cassandra datastax

我在solr查询中使用了facet字段。该查询在过去3天内触发了近10万次。在所有这些时间中,它间歇性地失败了4次,但有以下例外:

undefined field: "facetfieldname"

不确定是什么问题。下面是我的解码查询:

q=tenantid:"value"+AND+appinstid:"value"+AND+status:"Open"&shard.shuffling.strategy=SEED&shard.shuffling.seed=value&terms=true&rows=0&start=0&facet.field=facetfield&facet=true&facet.limit=-1&facet.mincount=0&facet.offset=0

以下是完整的堆栈跟踪:

 at java.lang.Thread.run(Thread.java:748) [na:1.8.0_144]
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_144]
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_144]
 at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_144]
 at com.xxxx.scheduler.impl.SchedulerTaskManager$TaskWrapper.call(SchedulerTaskManager.java:621) [scheduler-18.2.3.0-SNAPSHOT.jar:na]
 at com.xxxx.scheduler.impl.NonAnalyticsTask$SchedulerTaskCallable.call(NonAnalyticsTask.java:145) [scheduler-18.2.3.0-SNAPSHOT.jar:na]
 at com.xxxx.scheduler.impl.NonAnalyticsTask$SchedulerTaskCallable.call(NonAnalyticsTask.java:212) [scheduler-18.2.3.0-SNAPSHOT.jar:na]
 at com.xxxx.scheduler.util.UpdatePolicyCountUtil.updatePolicyCount(UpdatePolicyCountUtil.java:82) ~[scheduler-18.2.3.0-SNAPSHOT.jar:na]
 at com.xxxx.services.eventmgt.impl.AlertEventManagerImpl.searchPolicyEventCountUsingSolr(AlertEventManagerImpl.java:602) ~[event-management-service-18.2.3.0-SNAPSHOT.jar:na]
 at com.xxxx.common.dao.impl.search.SolrClient.executeQuery(SolrClient.java:403) ~[data-access-service-18.2.3.0-SNAPSHOT.jar:na]
 at com.xxxx.common.dao.impl.search.SolrClient.runQuery(SolrClient.java:588) ~[data-access-service-18.2.3.0-SNAPSHOT.jar:na]
 at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301) ~[solr-solrj-4.8.0.jar:4.8.0 1589874 - thetaphi - 2014-04-24 20:55:02]
 at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91) ~[solr-solrj-4.8.0.jar:4.8.0 1589874 - thetaphi - 2014-04-24 20:55:02]
 at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206) ~[solr-solrj-4.8.0.jar:4.8.0 1589874 - thetaphi - 2014-04-24 20:55:02]
 at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) ~[solr-solrj-4.8.0.jar:4.8.0 1589874 - thetaphi - 2014-04-24 20:55:02]
 at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:554) ~[solr-solrj-4.8.0.jar:4.8.0 1589874 - thetaphi - 2014-04-24 20:55:02]
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: undefined field: "facetfieldname"

我的solr mapping xml包含以下内容:

<field name="facetfieldname" type="string" indexed="true" stored="true" />

添加版本详细信息:

[cqlsh 5.0.1 | Cassandra 2.1.15.1403 | DSE 4.8.9 | CQL spec 3.2.1 | Native protocol v3]

有人可以帮忙吗。

0 个答案:

没有答案