lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "CoreAdmin" by incunix
Date Tue, 28 Feb 2012 14:15:17 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "CoreAdmin" page has been changed by incunix:

Notes on how to get a custom handler working for Solr 4.x

    * <!> [[Solr1.4]] '''adminHandler''' - FQN(Fully qualified name) of a class that
 inherits from !CoreAdminHandler.  For example, adminHandler="com.myorg.!MyAdminHandler" would
configure the custom admin handler (!MyAdminHandler) to handler admin requests ( as opposed
to org.apache.solr.handler.admin.!CoreAdminHandler , that is the default admin handler if
one is not specified ). To illustrate an use case for the same - suppose if there is a need
to get some statistics from different cores in a solr instance - we would proceed as follows.

     * Define a new action called 'mystat' that could be accessed from the client  as below.

+    * <!> [[Solr4.0]] Note that to load up your custom handler, you may need to use
the sharedLib attribute mentioned in the `<solr>` tag section.
     * Define the implementation of that action as
@@ -94, +95 @@

+   <!> [[Solr4.0]] Note that you may need to declare the two constructors for it to
be instantiated successfully.
    There are other methods in [[|CoreAdminHandler]]
that could be used to override default action-s, but for most of the common cases they would
not be necessary but left best to the experts. 
  class MyAdminHandler extends CoreAdminHandler { 

View raw message