I have been following the example of loading data-set into Elastic Search, using Kibana {https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-explore-data.html}
When I place in the Kibana console the following:
" curl -H "Content-Type: application/json" -XPOST "localhost:9200/bank/_doc/_bulk?pretty&refresh" --data-binary "@accounts.json" curl "localhost:9200/_cat/indices?v" "
It is shown in the console as:
"POST /json
-binary @accounts.json"
When I try to run it, I get the following:
"{
"error": "Incorrect HTTP method for uri [/json?pretty] and method [POST], allowed: [DELETE, GET, HEAD, PUT]",
"status": 405
}"
I have placed the Json file under the home directory {C:\elasticsearch-6.5.4} of the elastic search.
I am not sure what is the right syntax to load the file and where to place it exactly?
Thank you in advance