lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Santamauro <david.santama...@gmail.com>
Subject Re: script to get core num docs
Date Mon, 19 Sep 2016 15:54:59 GMT

https://cwiki.apache.org/confluence/display/solr/CoreAdmin+API

wget -O- -q \
 
'<your-instance>/admin/cores?action=STATUS&core=coreName&wt=json&indent=true'

\

   | grep numDocs

//


/admin/cores?action=STATUS&core=alexandria_shard2_replica1&wt=json&indent=1'|grep

numDocs|cut -f2 -d':'|

On 09/19/2016 11:22 AM, KRIS MUSSHORN wrote:
> How can i get the count of docs from a core with bash?
> Seems like I have to call Admin/Luke but cant find any specifics.
> Thanks
> Kris
>

Mime
View raw message