Skip to content

Instantly share code, notes, and snippets.

@clintongormley
Created July 18, 2011 11:07
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 clintongormley/1089206 to your computer and use it in GitHub Desktop.
Save clintongormley/1089206 to your computer and use it in GitHub Desktop.
Filter just by name and geo distance
# [Mon Jul 18 13:06:30 2011] Protocol: http, Server: 192.168.5.103:9200
curl -XGET 'http://127.0.0.1:9200/test/member/_search?pretty=1' -d '
{
"query" : {
"constant_score" : {
"filter" : {
"and" : [
{
"term" : {
"birthday" : "1970-10-24"
}
},
{
"geo_distance" : {
"location" : [
51.50853,
-0.12574
],
"distance" : "100km"
}
}
]
}
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment