Hi,
I am trying to upload the Shakespeare json into the Shakespeare index I created. From Kibana, I executed:
PUT /shakespeare
{
"mappings": {
"doc": {
"properties": {
"speaker": {"type": "keyword"},
"play_name": {"type": "keyword"},
"line_id": {"type": "integer"},
"speech_number": {"type": "integer"}
}
}
}
}
But, when I execute: curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json
or POST 'localhost:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json, it errors out.
I tried directly pasting the json POST /shakespeare/_bulk
{
...
}
But that errors out saying it's too big.
What's the right way to do this? Is there a command where I can reference the download link for the Shakespeare json?
Thanks!