什么是solr XML Query来删除我尝试过的核心中的所有数据,
curl http://localhost:8983/solr/core0/update?commit=true -H "Content-Type: text/xml" --data-binary '<delete><query>id:*</query></delete>'
你可以试试 :-
随着卷曲 -
curl -H 'Content-Type: text/xml' http://localhost:8983/solr/update --data-binary '<delete><query>*:*</query></delete>'
Run Code Online (Sandbox Code Playgroud)
请务必使用commit = true来反映这些更改.
或来自浏览 -
http://localhost:8983/solr/update?stream.body=<delete><query>*:*</query></delete>&commit=true
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6233 次 |
| 最近记录: |