Skip to content

Instantly share code, notes, and snippets.

@kimchy
Created February 2, 2011 18:11
Show Gist options
  • Save kimchy/808101 to your computer and use it in GitHub Desktop.
Save kimchy/808101 to your computer and use it in GitHub Desktop.
curl -XGET localhost:9200/_search?pretty=true -d '{
"query" : {
"filtered" : {
"query" : {
"match_all" : {}
},
"filter" : {
"term" : {
"_type" : "person"
}
}
}
},
"from" : 0, "size" : 100
}'
curl -XGET localhost:9200/_search?pretty=true -d '{
"query" : {
"filtered" : {
"query" : {
"term" : {
"_type" : "person"
}
},
"filter" : {
"term" : {
"_type" : "person"
}
}
}
},
"from" : 0, "size" : 100
}'
curl -XGET localhost:9200/_search?pretty=true -d '{
"query" : {
"filtered" : {
"query" : {
"range" : {
"age" : { "from" : 0, "to" : 10000 }
}
},
"filter" : {
"term" : {
"_type" : "person"
}
}
}
},
"from" : 0, "size" : 100
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment