MBean Request Handler
The MBean Request Handler offers programmatic access to the information provided on the Plugin/Stats page of the Admin UI.
The MBean Request Handler accepts the following parameters:
key
- Restricts results by object key.
cat
- Restricts results by category name.
stats
- Specifies whether statistics are returned with results. You can override the
stats
parameter on a per-field basis. The default isfalse
. wt
- The output format. This operates the same as the
wt
parameter in a query. The default isjson
.
MBeanRequestHandler Examples
The following examples assume you are running Solr’s techproducts
example configuration:
bin/solr start -e techproducts
To return information about the CACHE category only:
http://localhost:8983/solr/techproducts/admin/mbeans?cat=CACHE
To return information and statistics about the CACHE category only, formatted in XML:
http://localhost:8983/solr/techproducts/admin/mbeans?stats=true&cat=CACHE&wt=xml
To return information for everything, and statistics for everything except the fieldCache
:
http://localhost:8983/solr/techproducts/admin/mbeans?stats=true&f.fieldCache.stats=false
To return information and statistics for the fieldCache
only:
http://localhost:8983/solr/techproducts/admin/mbeans?key=fieldCache&stats=true