Skip to content

Instantly share code, notes, and snippets.

@kimchy
Created May 9, 2012 09:56
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 kimchy/2643463 to your computer and use it in GitHub Desktop.
Save kimchy/2643463 to your computer and use it in GitHub Desktop.
curl -XPUT localhost:9200/test/type/1 -d '{
"field1" : 10,
"field2" : 20
}'
curl -XPUT localhost:9200/test/type/2 -d '{
"field1" : 11,
"field2" : 20
}'
curl -XPOST localhost:9200/test/_refresh
curl localhost:9200/test/_search -d '{
"filter" : {
"bool" : {
"must" : {
"term" : {
"field1" : 10
}
},
"must" : {
"term" : {
"field2" : 20
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment