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
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/SolrConfig---constructing-the-object-tp27795339p27839895.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to