0

httpリクエストを使用して、solrでアトミック更新を実行します。id:"http://www.entekhab.ir"これらの両方の http リクエストを呼び出した設定でドキュメントを更新したいのですview="true"が、どれもうまくいきません。私が間違っていた部分を教えてください。

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}}]'

ps: schema.xml の id フィールドは uniquekey です

4

0 に答える 0