Elasticsarch中的映射解析器异常

问题描述

我已经在Cassandra中创建了UDT

CREATE type starter.random_data_demo(  
   destination_wise_count map<text,text>
);

然后在我的桌子上使用了这个udt

CREATE TABLE demo(
   field_data FROZEN<random_data_demo> PRIMARY KEY 
   );

当我点击Elasticsearch映射查询时收到错误

查询:-

curl -XPUT -H 'Content-Type:application/json' "http://localhost:9200/demo" -d '{
    "settings": { "keyspace":"starter" },"mappings": {
        "demo" : {
            "discover" : ".*"
        }
    }
}'

错误:-

"type":"mapper_parsing_exception","reason":"Failed to execute query:null : Field \"destination_wise_count\" with type map<text,text> does not match type frozen<\"testing.demo_field_data_destination_wise_count\">"}]

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)