五、接口操作
1、删除数据
# 删除9-18号之前的所有数据
curl 'http://127.0.0.1:6016/solr/appLog/update?commit=true' -H 'Content-Type: text/xml' -d '<delete><query>createTime:[* TO 2022-09-18T15:30:01Z]</query></delete>' -u 'admin:123456'
# 删除30天前的数据
curl 'http://127.0.0.1:6016/solr/appLog/update?commit=true' -H 'Content-Type: text/xml' -d '<delete><query>createTime:[* TO NOW-1]</query></delete>' -u 'admin:123456'
六、参考
原作者:docker安装solr:https://www.cnblogs.com/lvlinguang/p/16831936.html