Last active
April 13, 2016 15:23
-
-
Save meddulla/50c6e98cd8f06ff81078 to your computer and use it in GitHub Desktop.
import json to solr using jq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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