lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Krugler <kkrugler_li...@transpac.com>
Subject Re: SolrJ/EmbeddedSolrServer
Date Mon, 28 Jun 2010 02:42:33 GMT

On May 22, 2010, at 11:24am, Ryan McKinley wrote:

> Check:
> http://wiki.apache.org/solr/CoreAdmin
>
> Unless I'm missing something, I think you should be able to sort  
> what you need

If I'm using SolrJ, is there a programmatic way to force a reload of a  
core?

This, of course, assumes that I'm able to programmatically change the  
location of the dataDir, which is another issue.

Thanks,

-- Ken

> On Fri, May 21, 2010 at 7:55 PM, Ken Krugler
> <kkrugler_lists@transpac.com> wrote:
>> I've got a situation where my data directory (a) needs to live  
>> elsewhere
>> besides inside of Solr home, (b) moves to a different location when  
>> updating
>> indexes, and (c) setting up a symlink from <solr_home>/data isn't a  
>> great
>> option.
>>
>> So what's the best approach to making this work with SolrJ? The low- 
>> level
>> solution seems to be
>>
>> - create my own SolrCore instance, where I specify the data directory
>> - use that to update the CoreContainer
>> - create a new EmbeddedSolrServer
>>
>> But recreating the EmbeddedSolrServer with each index update feels  
>> wrong,
>> and I'd like to avoid mucking around with low-level SolrCore  
>> instantiation.
>>
>> Any other approaches?
>>
>> Thanks,
>>
>> -- Ken
>>
>> --------------------------------------------
>> Ken Krugler
>> +1 530-210-6378
>> http://bixolabs.com
>> e l a s t i c   w e b   m i n i n g
>>
>>
>>
>>
>>

--------------------------------------------
Ken Krugler
+1 530-210-6378
http://bixolabs.com
e l a s t i c   w e b   m i n i n g





Mime
View raw message