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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -