-
-
Save vthacker/420b93d0fc9b8a30c2e9 to your computer and use it in GitHub Desktop.
JSON formats
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" | |
} | |
] | |
}' | |
curl http://localhost:8983/solr/update -H 'Content-type:application/json' -d ' | |
{ | |
"add": { | |
"doc": { | |
"id": "1", | |
"title":"Doc 1" | |
} | |
}, | |
"add": { | |
"doc": { | |
"id": "2", | |
"title":"Doc 2" | |
} | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment