我只是想选择众多索引并通过 Query 更新它们的 int 值,例如,要删除我们使用下面的查询的索引。
http://localhost:8983/solr/update?stream.body=
<delete><query>id:298253</query></delete>&commit=true
像上面一样,我想选择包含 int value(chid:128) 的索引并将它们的部分代码更改为 2118。
以下是我当前的查询,首先它选择 chid 并将其部分代码更改为 2118。但它没有用。
http://localhost:8983/solr/new_core/update?stream.body=<query>chid:128</query>
<set>
<field name="sectioncode" >2118</field>
</set>&commit=true
请给我你的建议