Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
Created November 8, 2011 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmpwizard/1349360 to your computer and use it in GitHub Desktop.
Save fmpwizard/1349360 to your computer and use it in GitHub Desktop.
facet across multiple types
curl -X DELETE "http://localhost:9200/articles"
curl -X POST "http://localhost:9200/articles/article/1" -d '
{
"title" : "One"
}'
curl -X POST "http://localhost:9200/articles/article/2" -d '
{
"title" : "Two"
}'
curl -X POST "http://localhost:9200/articles/article/3" -d '
{"title" : "Three"}'
echo "=================="
curl -X POST "http://localhost:9200/articles/tags/1" -d '
{
"tags" : "foo"
}'
curl -X POST "http://localhost:9200/articles/tags/2" -d '
{
"tags" : "foo"
}'
curl -X POST "http://localhost:9200/articles/tags/3" -d '
{
"tags" : "bar"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment