问题
Query : http://localhost:8983/solr/trackfleet_db.location/select?q=*:*&facet=true&facet.pivot={!stats=piv1}date,latitude,longitude&stats=true&stats.field={!tag=piv1}gpsdt
When I execute this query on a separate solr instance (which is not an instance of DSE) then this query works fine.
But in case of dse (Now I am using in built Solr of DSE) then it does not return anything ....And when I execute this query using curl command then it is giving following error
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">400</int>
<int name="QTime">3</int>
</lst>
<lst name="error">
<lst name="metadata">
<str name="error-class">
org.apache.solr.common.SolrException
</str>
<str name="root-error-class">
org.apache.solr.common.SolrException
</str>
</lst>
<str name="msg">
undefined field: "!tag=piv1gpsdt"
</str>
<int name="code">400</int>
</lst>
</response>
来源:https://stackoverflow.com/questions/49320539/solr-query-issue-with-faceting-and-stats-in-dse