: My first thought after reading this : "ouch!". : My second thought after reading this : "Hey, I think this guys is right".
Please don't take it personally, there's a reason i had to make a standard disclaimer this type of thing. : So, I am new to all things Solr, and am working with some code which creates : some new Handlers to be called by the Solr app. What I am doing is : updating these classes which were written for Solr 1.2 to work with the new : Solr 1.4. To be clear: by "Handler" you mean SolrREquestHandler, correct? ... are there any other types of custom "Plugins" you are working with? http://wiki.apache.org/solr/SolrPlugins : I need to replace calls to SolrConfig.config.getSomething() since it has If you are only dealing with SolrRequestHandler then this is easy -- the SolrQueryRequest object has a "getCore()" method - from the core you can get the config. If you need access to the core during "initialization" (ie: if your current code uses SolrConfig.config in the init(NamedList) method) then things get slightly more complicted. You'll need to make your SolrRequestHandler impelement "SolrCoreAware" ... http://wiki.apache.org/solr/SolrPlugins#SolrCoreAware ...and refactor some of your initialization code. essentially you'll have to divide it into two parts: init(NamedList) will be called right after your plugin is constructed, and inform(SolrCore) will be called once all plugins have had their "init" method called but before handleRequest(...) is ever called. (the two phase approach was introduced to deal with circular refrence problems of plugins trying to use the SolrCore or other plugins before they were fully initialized) If you are with other types of plugins in the "Valid SolrCoreAware classes include..." list from the link above, then all of the same suggestions apply. if you are dealing with other types of plugins ... well ... you'll need to give us more details (ie: type of plugin, what kinds of config info you need) to help you figure out how to deal with those. -Hoss