Solr query issue with Faceting and Stats in dse

2019-08-16 20:53发布

问题:

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>