I am going to do atomic update on solr with http request. I want to update the document with id:"http://www.entekhab.ir"
setting view="true"
I did call both of these http requests, but none of them works for me. Could you please tell me what part I did wrong?
http://10.102.1.30:8983/solr/collection1/update?commit=true -H 'Content-Type:text/xml'
'<add>
<doc>
<field
name="id">http://www.entekhab.ir/</field>
<field update="set"
name=
"view">
true
</field>
</doc>
</add>'
http://10.102.1.30:8983/solr/collection1/update?commit=true -H 'Content-type:application/json' -d '[{"id":"http://www.entekhab.ir/","view":{"set":true}}]'
p.s: id field is uniquekey in my schema.xml