My first thought after reading this : "ouch!". My second thought after reading this : "Hey, I think this guys is right". :)
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. I need to replace calls to SolrConfig.config.getSomething() since it has been deprecated. I have several classes which need to get at properties which are stored in solrConfig.xml. That, I believe is the X! Any help appreciated, Kim hossman wrote: > > > : Now a few days later I am thinking, I need access to the SolrConfig > object > : in multiple classes. Maybe I should not be reloading it over and over? > I > : see that there is a getSolrConfig() method in the SolrCore class that > will > : return the SolrConfig object. > : Should I maybe just take all my classes and have them implement the > : SolrCoreAware interface so that they can call core.getSolrConfig(); ?? > > Uh... what exactly is it you are doing? > > http://people.apache.org/~hossman/#xyproblem > XY Problem > > Your question appears to be an "XY Problem" ... that is: you are dealing > with "X", you are assuming "Y" will help you, and you are asking about "Y" > without giving more details about the "X" so that we can understand the > full issue. Perhaps the best solution doesn't involve "Y" at all? > See Also: http://www.perlmonks.org/index.pl?node_id=542341 > > > > -Hoss > > > -- View this message in context: http://old.nabble.com/SolrConfig---constructing-the-object-tp27795339p27850226.html Sent from the Solr - User mailing list archive at Nabble.com.