11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The search executed by a Ping is configured using a requestHandler in the solrconfig.xml file:<br />

<br />

<br />

<br />

solrpingquery<br />

<br />

<br />

all<br />

<br />

<br />

<br />

<br />

The Ping option doesn't open a page, but the status of the request can be seen on the core overview page<br />

shown when clicking on a collection name. The length of time the request has taken is displayed next to the Ping<br />

option, in milliseconds.<br />

API Examples<br />

While the UI screen makes it easy to see the ping response time, the underlying ping command can be more<br />

useful when executed by remote monitoring tools:<br />

Input<br />

http://localhost:8983/solr//admin/ping<br />

This command will ping the core name for a response.<br />

Input<br />

http://localhost:8983/solr/admin/ping?wt=json&distrib=true&indent=t<br />

rue<br />

This command will ping all replicas of the given collection name for a response<br />

Sample Output<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

44

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!