Merge pull request #91 from lbryio/gendb-fix
Fixed the gendb script for compability with new curl versions.
This commit is contained in:
commit
cf3cac7b79
1 changed files with 1 additions and 1 deletions
2
gendb.sh
2
gendb.sh
|
@ -5,6 +5,6 @@ then
|
||||||
exit 1;
|
exit 1;
|
||||||
else
|
else
|
||||||
echo "Index did not exist, creating..." ;
|
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;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue