lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KRIS MUSSHORN <mussho...@comcast.net>
Subject Re: bash to get doc count
Date Wed, 05 Oct 2016 19:21:21 GMT

ps $SOLR_HOST and $SOLR_CORE_NAME are set correctly. 


Kris 

----- Original Message -----

From: "KRIS MUSSHORN" <musshorns@comcast.net> 
To: solr-user@lucene.apache.org 
Sent: Wednesday, October 5, 2016 3:17:19 PM 
Subject: bash to get doc count 

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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message