Skip to content

Instantly share code, notes, and snippets.

@harryf
Created January 10, 2011 16:18
Show Gist options
  • Save harryf/772969 to your computer and use it in GitHub Desktop.
Save harryf/772969 to your computer and use it in GitHub Desktop.
#!/bin/sh
curl -XGET localhost:9200/drs/shows/_search -d '
{
"query" : {
"match_all" : { }
},
"facets" : {
"today_facet" : {
"query" : {
"term" : { "text" : "heute" }
}
}
}
}
'
@harryf
Copy link
Author

harryf commented Jan 10, 2011

Well you're right - good discussion on stackoverflow - http://stackoverflow.com/questions/978061/http-get-with-request-body leading to http://tech.groups.yahoo.com/group/rest-discuss/message/9962

But's the way things are done with http://www.elasticsearch.com - see http://vimeo.com/9297470 at 6:48. And curl supports it... ;)

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