Skip to content

Instantly share code, notes, and snippets.

@abhi-sanoujam
Last active December 18, 2015 03:39
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 abhi-sanoujam/5720015 to your computer and use it in GitHub Desktop.
Save abhi-sanoujam/5720015 to your computer and use it in GitHub Desktop.
curl -XPOST "http://localhost:9200/test/_search?pretty" -d '{
"filter" : {
"missing" : {
"field" : "b"
}
}
}'
curl -XPUT http://localhost:9200/test/test/1 -d '{
"a" : "A1",
"b" : {
"b_a" : "b_a 1"
}
}'
curl -XPUT http://localhost:9200/test/test/2 -d '{
"abc" : "abc 1"
}'
curl -XPUT http://localhost:9200/test/test/3 -d '{
"a" : "A3",
"b" : {
"b_b" : "b_b 1"
}
}'
curl -XPOST "http://localhost:9200/test/_search?pretty" -d '{
"filter" : {
"missing" : {
"field" : "a"
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment