Created
January 10, 2011 16:18
-
-
Save harryf/772969 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -XGET localhost:9200/drs/shows/_search -d ' | |
{ | |
"query" : { | |
"match_all" : { } | |
}, | |
"facets" : { | |
"today_facet" : { | |
"query" : { | |
"term" : { "text" : "heute" } | |
} | |
} | |
} | |
} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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... ;)