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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -