Skip to content

Instantly share code, notes, and snippets.

View xingh's full-sized avatar

Rahul Singh xingh

View GitHub Profile
@meddulla
meddulla / importjsontosolr.sh
Last active April 13, 2016 15:23
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'