11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MBean Request Handler<br />

The MBean Request Handler offers programmatic access to the information provided on the Plugin/Stats page of<br />

the Admin UI.<br />

The MBean Request Handler accepts the following parameters:<br />

Parameter Type Default Description<br />

key multivalued all Restricts results by object key.<br />

cat multivalued all Restricts results by category name.<br />

stats boolean false Specifies whether statistics are returned with results. You can override<br />

the stats parameter on a per-field basis.<br />

wt multivalued xml The output format. This operates the same as the wt parameter in a<br />

query.<br />

Examples<br />

The following examples assume you are running <strong>Solr</strong>'s techproducts example configuration:<br />

bin/solr start -e techproducts<br />

To return information about the CACHE category only:<br />

http://localhost:8983/solr/techproducts/admin/mbeans?cat=CACHE<br />

To return information and statistics about the CACHE category only, formatted in JSON:<br />

http://localhost:8983/solr/techproducts/admin/mbeans?stats=true&cat=CACHE&indent=t<br />

rue&wt=json<br />

To return information for everything, and statistics for everything except the fieldCache:<br />

http://localhost:8983/solr/techproducts/admin/mbeans?stats=true&f.fieldCache.stats<br />

=false<br />

To return information and statistics for the fieldCache only:<br />

http://localhost:8983/solr/techproducts/admin/mbeans?key=fieldCache&stats=true<br />

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

543

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

Saved successfully!

Ooh no, something went wrong!