360SDN.COM

Compressor detection can only be called or compressed xcontent bytes

来源:  2018-08-29 19:30:53    评论:0点击:

"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse"}],"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"not_x_content_exception","reason":"Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"}},"status":400}

解决办法:
 

On Windows curls acts differently. Try using curl -XPUT "http://127.0.0.1:9200/index/type/id" -d "{ """attribute""" : """name""" }".Try with those triple quotes

或者


curl -X POST http://127.0.0.1:9200/index/type -d @usr/share/elasticsearch/data/test.json
curl -X POST http://127.0.0.1:9200/index/type -d @@D:\\3d\\elasticsearch-6.3.2\\bin\\test.json

为您推荐

友情链接 |九搜汽车网 |手机ok生活信息网|ok生活信息网|ok微生活
 Powered by www.360SDN.COM   京ICP备11022651号-4 © 2012-2016 版权