Skip to content

Instantly share code, notes, and snippets.

@schovi
Created September 14, 2012 17:58
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save schovi/3723550 to your computer and use it in GitHub Desktop.
Save schovi/3723550 to your computer and use it in GitHub Desktop.
How to use httpie instal of curl with elasticsearch
$ curl -XPUT 'http://localhost:9200/twitter/' -d '{
index : {
number_of_shards : 3
number_of_replicas : 2
}
}'
@jkbrzt
Copy link

jkbrzt commented Sep 14, 2012

Via redirected stdin, napr.:

http PUT localhost:9200/twitter/ <<<'{
index : {
        number_of_shards : 3
        number_of_replicas : 2
    }
}'

@schovi
Copy link
Author

schovi commented Sep 28, 2012

Díky! Jsem si všiml odpovědit až teď. Nikde žádné upozornění.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment