Skip to content

Instantly share code, notes, and snippets.

@shorock
Created October 5, 2017 15:58
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 shorock/f71a6bc39b30d20d53cf223c76df7f59 to your computer and use it in GitHub Desktop.
Save shorock/f71a6bc39b30d20d53cf223c76df7f59 to your computer and use it in GitHub Desktop.
Working with Curl/JQ extract from Solr
curl -g "localhost:8983/solr/statistics/select?q=time:[2017-09-01T00:00:00Z+TO+2017-10-01T00:00:00Z]&sort=time+asc&rows=10000&start=30000&wt=json" | jq '.response | [.docs[]|del(._version_)] ' | nice gzip -c > september3.json.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment