curl - PUT: command not found using elasticsearch -


i new elasticsearch , following guide on official website. when tried shorthand syntax given in guide i.e.

put /megacorp/employee/1 {     "first_name" : "john",     "last_name" :  "smith",     "age" :        25,     "about" :      "i love go rock climbing",     "interests": [ "sports", "music" ] } 

my terminal gives error

put: command not found

please guide me trick missing?

put not command, need use curl, try this:

curl -put http://localhost:9200/megacorp/employee/1 -d ' {     "first_name" : "john",     "last_name" :  "smith",     "age" :        25,     "about" :      "i love go rock climbing",     "interests": [ "sports", "music" ] }' 

Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -