Skip to content

Instantly share code, notes, and snippets.

@schovi
Created September 14, 2012 17:58
Show Gist options
  • Select an option

  • Save schovi/3723550 to your computer and use it in GitHub Desktop.

Select an option

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

jkbrzt commented Sep 14, 2012

Copy link
Copy Markdown

Via redirected stdin, napr.:

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

@schovi

schovi commented Sep 28, 2012

Copy link
Copy Markdown
Author

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