From 581f3de8382d4eb37c52ec8b168c51aadd9a1c0f Mon Sep 17 00:00:00 2001 From: filipnyquist Date: Mon, 9 Jul 2018 14:50:21 +0200 Subject: [PATCH] Fixed the gendb script for compability with new curl versions. --- gendb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gendb.sh b/gendb.sh index c94d802..b3c3345 100755 --- a/gendb.sh +++ b/gendb.sh @@ -5,6 +5,6 @@ then exit 1; else echo "Index did not exist, creating..." ; - curl -X PUT http://localhost:9200/claims -H '"Content-Type: application/json"'-d '{ "settings" : { "number_of_shards" : 1 }, "mappings" : { "claim" : { "properties" : { "value" : { "type" : "nested" }, "suggest_name": { "type": "completion" }, "suggest_desc": { "type": "completion" } } } } }'; + curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X PUT -d '{ "settings" : { "number_of_shards" : 1 }, "mappings" : { "claim" : { "properties" : { "value" : { "type" : "nested" }, "suggest_name": { "type": "completion" }, "suggest_desc": { "type": "completion" } } } } }' http://localhost:9200/claims; exit 0; fi