Solr原子更新对我不起作用

Solr原子更新对我不起作用,solr,solr4,solr-query-syntax,Solr,Solr4,Solr Query Syntax,我将使用http请求对solr进行原子更新。我想用id:”更新文档:http://www.entekhab.ir“settingview=“true”我确实调用了这两个http请求,但它们都不适合我。你能告诉我我做错了什么吗 http://10.102.1.30:8983/solr/collection1/update?commit=true -H 'Content-Type:text/xml' '<add> <doc> <field name="id">ht

我将使用http请求对solr进行原子更新。我想用
id:”更新文档:http://www.entekhab.ir“
setting
view=“true”
我确实调用了这两个http请求,但它们都不适合我。你能告诉我我做错了什么吗

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}}]'
http://10.102.1.30:8983/solr/collection1/update?commit=true -H'内容类型:文本/xml'
'
http://www.entekhab.ir/
符合事实的
'
http://10.102.1.30:8983/solr/collection1/update?commit=true -H'内容类型:application/json'-d'[{“id”:”http://www.entekhab.ir/,“视图”:{“集”:真}}]'

p、 s:id字段在我的模式中是唯一的。xml

您从Solr服务器得到任何响应或错误吗?是的,我得到的响应类似于:0 2旧线程,但只是想说明一下。您是否尝试过使用文档选项中的管理UI?我认为它在测试中不太容易出错。