Merry Christmas everyone, I'm using solr 5.4.1 and writing a bash script to update the value in a field of a single document in solr.
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"}}') $DOC_ID is a variable in the script that contains the document UID. I have confirmed that this value can be found in the documents with query. $VAL is the value to set. I have valudated that the field im trying to set will accept the value. metatag.date.single is the field I want to set and it does NOT yet exist in SOlr but is defined in schema.xml. When i run the line in bash i get: {"responseHeader":{"status":400,"QTime":0},"error":{"msg":"Unknown command 'id' at [5]","code":400}} the UID field in SOLR is named id. What am i doing wrong? Is their a better way to handle this? TIA, Kris