Created
February 26, 2014 20:12
-
-
Save vthacker/9237543 to your computer and use it in GitHub Desktop.
JSON Examples
This file contains 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
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