Hi Xin,

from the wiki:
http://wiki.apache.org/solr/SolrConfigXml

The URL of the "ping" query is* /admin/ping

* You can also check (via wget) the number of documents. it might look like a rusty hack but it works for me:

wget -T 1 -q "http://localhost:8080/solr/select?q=*:*"; -O - | tr '/>' '\n' | grep numFound | tr '"' ' ' | awk '{print $5}'`

Regards,
Peter.

As we know we can use browser to check if Solr is running by going to 
http://$hostName:$portNumber/$masterName/admin, say http://localhost:8080/solr1/admin. My questions 
is: are there any ways to check it using command line? I used "curl 
http://localhost:8080"; to check my Tomcat, it worked fine. However, no response if I try 
"curl http://localhost:8080/solr1/admin"; (even when my Solr is running). Does anyone know 
any command line alternatives?

Thanks,
Xin
This electronic mail message contains information that (a) is or
may be CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE
PROTECTED
BY LAW FROM DISCLOSURE, and (b) is intended only for the use of
the addressee(s) named herein.  If you are not an intended
recipient, please contact the sender immediately and take the
steps necessary to delete the message completely from your
computer system.

Not Intended as a Substitute for a Writing: Notwithstanding the
Uniform Electronic Transaction Act or any other law of similar
effect, absent an express statement to the contrary, this e-mail
message, its contents, and any attachments hereto are not
intended
to represent an offer or acceptance to enter into a contract and
are not otherwise intended to bind this sender,
barnesandnoble.com
llc, barnesandnoble.com inc. or any other person or entity.


--
http://jetwick.com twitter search prototype

Reply via email to