lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
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:
http://wiki.apache.org/solr/CoreAdmin?action=diff&rev1=36&rev2=37

Comment:
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.

     http://localhost:8983/solr/admin/cores?action=MYSTAT
+    * <!> [[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 [[http://lucene.apache.org/solr/api/org/apache/solr/handler/admin/CoreAdminHandler.html|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 { 

Mime
View raw message