curl SOLR_URL/update -d \'
[
{"id" : "1",
"ONLINE" : {"set":"1"}
}
]'
I am using solr6.3. Above command works fine as it update online flag to 1 for id=1. But the issue is if record is not present then it adds a value as id=1 and online=1 which is not desired.
So question is, is it possible that solr updates the value only if record is present in the solr.