小编Gur*_*lik的帖子

如何通过curl查询删除SOLR索引数据?

我有一个像这样的SOLR schema.xml:

<field name="cartype" type="lowercase" indexed="true" stored="true"/>
<field name="color" type="lowercase" indexed="true" stored="true"/>
Run Code Online (Sandbox Code Playgroud)

我想用curl命令从SOLR数据库中删除"blue"和"stationwagon"标记的记录.

但我没有用以下命令做到这一点:

curl http://46.231.77.98:7979/solr/update/?commit=true -H "Content-Type: text/xml" -d "<delete>(cartype:stationwagon)AND(color:blue)</delete>"
Run Code Online (Sandbox Code Playgroud)

你有什么建议吗?

schema curl solr http-delete

19
推荐指数
2
解决办法
3万
查看次数

标签 统计

curl ×1

http-delete ×1

schema ×1

solr ×1