Installed v 7.0.0-alpha2 on Windows 10. Using the getting-started guide at https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-explore.html I am able to get the cluster health. I am able to list the indices. I am able to create an index. But when I try to put some data into the index (using the COPY AS CURL link to copy the curl command to the clipboard and then paste into my cmd shell), I get the following:
C:\Users\bmclaugh>curl -X PUT "localhost:9200/customer/_doc/1?pretty" -H 'Content-Type: application/json' -d' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } curl: (6) Could not resolve host: application C:\Users\bmclaugh>{ '{' is not recognized as an internal or external command, operable program or batch file. C:\Users\bmclaugh> "name": "John Doe" '"name":' is not recognized as an internal or external command, operable program or batch file. C:\Users\bmclaugh>} '}' is not recognized as an internal or external command, operable program or batch file. C:\Users\bmclaugh>' ''' is not recognized as an internal or external command, operable program or batch file.
That looked like a cr/lf issue, so I reformatted the curl command to reside on a single line. I get the following:
C:\Users\bmclaugh>curl -X PUT "localhost:9200/customer/_doc/1?pretty" -H 'Content-Type: application/json' -d '{"name": "John Doe"}' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } curl: (6) Could not resolve host: application curl: (3) [globbing] unmatched close brace/bracket in column 9
What am I doing wrong here? Again, the first attempt above is a copy/paste from the getting-started-query-document.html online.
Thanks,
Brian