Skip to content

Instantly share code, notes, and snippets.

@meddulla
Last active April 13, 2016 15:23
Show Gist options
  • Select an option

  • Save meddulla/50c6e98cd8f06ff81078 to your computer and use it in GitHub Desktop.

Select an option

Save meddulla/50c6e98cd8f06ff81078 to your computer and use it in GitHub Desktop.
import json to solr using jq
cat small.json | ./jq -c '{"add": {"doc": ., "commitWithin": 10000}}' | curl 'http://localhost:8983/solr/update/json?commit=true' --data-binary @- -H 'Content-type:application/json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment