On 12/22/2016 8:45 AM, KRIS MUSSHORN wrote: > Here is the bash line: > > UPDATE_RESULT=$( curl -s "https://snip/solr/TEST_CORE/update?&commit=true" > --data-binary '{"id":"$DOC_ID","metatag.date.single" :{"set":"$VAL"}}')
One thing I know you need for sure with the "/update" handler is the Content-Type header. Without it, Solr will not know that you are sending JSON. https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-JSONFormattedIndexUpdates There are some alternate update URL paths that assume JSON. See below. Because your JSON does not include the "add" command, but instead has a bare document, you *might* need to send to /update/json/docs instead of just /update or even /update/json. Or you can restructure it to use the "add" command. https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-JSONUpdateConveniencePaths Thanks, Shawn