RE: script to get core num docs

2016-09-19 Thread Kris Musshorn
Thanks David.. got it working -Original Message- From: David Santamauro [mailto:david.santama...@gmail.com] Sent: Monday, September 19, 2016 11:55 AM To: solr-user@lucene.apache.org Cc: david.santama...@gmail.com Subject: Re: script to get core num docs https://cwiki.apache.org

Re: script to get core num docs

2016-09-19 Thread David Santamauro
https://cwiki.apache.org/confluence/display/solr/CoreAdmin+API wget -O- -q \ '/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

Re: script to get core num docs

2016-09-19 Thread Walter Underwood
Do a search. The URL will looks something like this: /solr/core-name/select?q=*:*&rows=0&wt=json That will return something like this: {"responseHeader":{"status":0,"QTime":1},"response":{"numFound":287176,"start":0,"docs":[]}} Filter that response through this: jq .response.numFound

Re: script to get core num docs

2016-09-19 Thread Alexandre Rafalovitch
If you see it in the Admin UI (and you do), you can get it from the web browser's Developer interface but just reloading the page and watching for traffic. Is that enough for you to discover what you need or do you need more specific help? Regards, Alex. Newsletter and resources for Solr

Re: script to get core num docs

2016-09-19 Thread John Bickerstaff
I would imagine there's an http call that would get it and you could call cURL in your bash script... I don't know the URL parameters off hand however... On Mon, Sep 19, 2016 at 9:22 AM, KRIS MUSSHORN wrote: > How can i get the count of docs from a core with bash? > Seems like I have to call Ad