Do a search. The URL will looks something like this:


That will return something like this:


Filter that response through this:

   jq .response.numFound

And you’ll get the number of documents in the core.

Alternatively, the info is in the admin status API.

Walter Underwood  (my blog)

> On Sep 19, 2016, at 8:30 AM, John Bickerstaff <> 
> wrote:
> 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 Admin/Luke but cant find any specifics.
>> Thanks
>> Kris

Reply via email to