Skip to content

Instantly share code, notes, and snippets.

@byronvoorbach
Last active August 29, 2015 14:19
Show Gist options
  • Save byronvoorbach/abc0376f930287a467f7 to your computer and use it in GitHub Desktop.
Save byronvoorbach/abc0376f930287a467f7 to your computer and use it in GitHub Desktop.
Curl JQ, retrieve all coordinates for HMPalen with certain classification
curl -s -XGET "http://localhost:9200/geo/hmpaal/_search?size=5000" -d' {"query":{"filtered":{"filter":{"term":{"lbiClassificatie":"lbi1"}}}}}' | jq -r '.hits.hits[]._source.locatie | join("/")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment