Skip to content

Instantly share code, notes, and snippets.

@rkroll
Created May 24, 2013 19:14
Show Gist options
  • Save rkroll/5645851 to your computer and use it in GitHub Desktop.
Save rkroll/5645851 to your computer and use it in GitHub Desktop.
Counts of geocoded addresses
Get count of geocoded addresses:
curl -v 'http://cass3:9200/addresses/address/_count' -d '{
"constant_score": {
"filter": {
"not": {
"missing": {
"field": "geo_point"
}
}
}
}
}'
Count of addresses without geocode:
curl -v 'http://cass3:9200/addresses/address/_count' -d '{
"constant_score": {
"filter": {
"missing": {
"field": "geo_point"
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment