Trying to index text file into ES, but getting below error

{
"error" : {
"root_cause" : [
{
"type" : "json_parse_exception",
"reason" : "Unexpected character ('-' (code 45)): Expected space separating root-level values\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@6b8e4b46; line: 1, column: 6]"
}
],
"type" : "json_parse_exception",
"reason" : "Unexpected character ('-' (code 45)): Expected space separating root-level values\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@6b8e4b46; line: 1, column: 6]"
},
"status" : 500
}

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Could you provide a full recreation script as described in

It will help to better understand what you are doing.
Please, try to keep the example as simple as possible.

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