Solr query issue with Faceting and Stats in dse

独自空忆成欢 提交于 2020-01-16 18:02:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!