Skip to content

Instantly share code, notes, and snippets.

@vthacker
Created February 26, 2014 20:12
Show Gist options
  • Save vthacker/9237543 to your computer and use it in GitHub Desktop.
Save vthacker/9237543 to your computer and use it in GitHub Desktop.
JSON Examples
curl http://localhost:8983/solr/update -H 'Content-type:application/json' -d '
[
{
"id": "1",
"title": "Doc 1"
},
{
"id": "2",
"title": "Doc 2"
}
]'
curl http://localhost:8983/solr/update -H 'Content-type:application/json' -d '
{
"add": [
{
"id": "1",
"title": "Doc 1"
},
{
"id": "2",
"title": "Doc 2"
}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment