lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Comcast <mussho...@comcast.net>
Subject Re: bash to get doc count
Date Wed, 05 Oct 2016 20:12:40 GMT
So what would be the right -?

Sent from my iPhone

> On Oct 5, 2016, at 3:22 PM, Alan Woodward <alan@flax.co.uk> wrote:
> 
> tr -d ā€˜0-9ā€™ is removing all numbers from the line, which Iā€™m guessing is the opposite
of what you want?
> 
> Alan Woodward
> www.flax.co.uk
> 
> 
>> On 5 Oct 2016, at 20:17, KRIS MUSSHORN <musshorns@comcast.net> wrote:
>> 
>> Will someone please tell me why this stores the text "numDocs" instead of returning
the number of docs in the core? 
>> 
>> #!/bin/bash 
>> DOC_COUNT=`wget -O- -q $SOLR_HOST'admin/cores?action=STATUS&core='$SOLR_CORE_NAME'&wt=json&indent=true'
| grep numDocs | tr -d '0-9'` 
>> 
>> TIA 
>> 
>> Kris 
> 


Mime
View raw message