How to enter an instruction with CMD in Elasticsearch


#1

I just read it here:
https://www.elastic.co/guide/en/elasticsearch/reference/current/_index_and_query_a_document.html
I don't know how to type this instruction(curl -XPUT 'localhost:9200/customer/external/1?pretty&pretty' -H 'Content-Type: application/json' -d'
{
"name": "John Doe"
}
')
in win7's CMD.
Because it is always wrong, for example:
{"error":{
"root_cause":[{
"type"":mapper_parsing_exception",
......
}]
......
}}
What should I do? Ask for directions, thank you.


(David Pilato) #2

On windows I think it's easier to use Kibana dev console instead of curl.


#3

Yes, I just found a very good browser plug-in (Sence), i can directly achieve the input of these statements. Thank you for your reply.


(David Pilato) #4

Sense is the old version I believe of the Kibana dev console.


#5

yet,i see.


(SK) #6

In widows single quotes in curl doesnt work, use double quotes instead


#7

Yes, you're right. thanks.


(system) #8

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