[英]How to perform delta-import in solr with authentication?
I have completed solr full import, now I have to automate delta-import using linux-cron. 我已经完成了solr full import,现在我必须使用linux-cron自动化delta-import。 This is my shell script: 这是我的shell脚本:
#!/bin/bash
curl http://localhost:8983/solr/collection/dataimport?command=delta-import
The solr in my server is protected with authentication. 我服务器中的Solr受身份验证保护。 so how to authenticate and then do delta-import using curl? 那么如何进行身份验证,然后使用curl进行增量导入?
使用标准HTTP语法进行基本身份验证 :
curl http://user:pass@localhost:8983/solr/..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.