Created on 03-09-2018 02:55 PM
How to get the number of documents indexed :
curl -o /tmp/result.txt --negotiate -u : -X GET "SOLR_SERVER:8886/solr/ranger_audits_shard1_replica1/select?q=*:*&distrib=false"
curl --negotiate -u: "SOLR_SERVER:8886/solr/ranger_audits/update?commit=true" -H "Content-Type: text/xml" --data-binary "<delete><query>evtTime:[* TO NOW-24HOURS]</query></delete>"
How to run optimize command via curl :
curl --negotiate -u: "SOLR_SERVER:8886/solr/ranger_audits/update?optimize=true"