Yes - I think you should if you can. If you can make them SolrAware that is - only certain plugin classes have the ability to do so (due to a runtime check against a list of approved classes)

- Mark

On 03/09/2010 01:28 PM, Kimberly Kantola wrote:
Thank you Mark for your help.
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(); ??

Thanks
Kim



markrmiller wrote:
On 03/05/2010 10:29 AM, Kimberly Kantola wrote:
Hi All,
    I am new to using the Solr classes in development.  I am trying to
determine how to create  a SolrConfig object.
    Is it just a matter of calling new SolrConfig with the location of the
solrconfig.xml file ?

SolrConfig config = new SolrConfig("/path/to/solrconfig.xml");

Thanks for any help!
Kim

Sure, that's one way that will work if you are happy with all of the
other defaults that will occur.

--
- Mark

http://www.lucidimagination.com







--
- Mark

http://www.lucidimagination.com



Reply via email to