From 82fa95a9ca3d7a48766afe556ac8633ec2989827 Mon Sep 17 00:00:00 2001 From: Elsa Hill Date: Sun, 24 Dec 2017 11:59:54 -0800 Subject: [PATCH] Add content type to the curl command since it is now required with newer versions of elasticsearch --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e4d0f09..160a023 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ 4) $ bin/elasticsearch ### Insert data into elasticsearch - $ curl -XPOST localhost:9200/test/tweet -d '{"name":"Satendra", "job":"consultant" , "location":"India", "age":28}' - $ curl -XPOST localhost:9200/test/tweet -d '{"name":"Rohit", "job":"consultant" , "location":"India", "age":22}' - $ curl -XPOST localhost:9200/test/tweet -d '{"name":"Mohit", "job":"consultant" , "location":"India", "age":25}' + $ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Satendra", "job":"consultant" , "location":"India", "age":28}' + $ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Rohit", "job":"consultant" , "location":"India", "age":22}' + $ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Mohit", "job":"consultant" , "location":"India", "age":25}' ### Run project