Noob) Put json file on elastic, there is an error

my json file is here,

and i try put it on my elasticsearch with
curl -H 'Content-type: application/json' -XPOST 'localhost:9200:news/new -d @/home/sang/Downloads/elasticsearch-6.3.2/fast.json

but as you can see, there is error
not_x_content_exception","reason":"Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes

how can i solve it??

This doesn't look like valid json. First of all, it starts with a [. Check your file e.g. with that it is valid first. Second: you seem to try to put several documents at once. This is only possible using the _bulk endpoint, which follows a specific bulk format.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.