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