Thanks everyone, I was following the solrj wiki which says:
""" If you want to use MultiCore features, then you should use this: File home = new File( "/path/to/solr/home" ); File f = new File( home, "solr.xml" ); CoreContainer container = new CoreContainer(); container.load( "/path/to/solr/home", f ); EmbeddedSolrServer server = new EmbeddedSolrServer( container, "core name as defined in solr.xml" ); ... """ I'm just a little confused with the disconnect between that and what I see about managing multiple cores here: http://wiki.apache.org/solr/CoreAdmin . If someone could provide some high-level directions it would be greatly appreciated. Thanks, -Kallin Nagelberg -----Original Message----- From: Mark Miller [mailto:markrmil...@gmail.com] Sent: Friday, March 26, 2010 7:54 AM To: solr-user@lucene.apache.org Subject: Re: multicore embedded swap / reload etc. Embedded supports MultiCore - it's the direct core connection thing that supports one. - Mark http://www.lucidimagination.com (mobile) On Mar 26, 2010, at 7:38 AM, Erik Hatcher <erik.hatc...@gmail.com> wrote: > But wait... embedded Solr doesn't support multicore, does it? Just > off memory, I think it's fixed to a single core. > > Erik > > On Mar 25, 2010, at 10:31 PM, Lance Norskog wrote: > >> All operations through the SolrJ work exactly the same against the >> Solr web app and embedded Solr. You code the calls to update cores >> with the same SolrJ APIs either way. >> >> On Wed, Mar 24, 2010 at 2:19 PM, Nagelberg, Kallin >> <knagelb...@globeandmail.com> wrote: >>> Hi, >>> >>> I've got a situation where I need to reindex a core once a day. To >>> do this I was thinking of having two cores, one 'live' and one >>> 'staging'. The app is always serving 'live', but when the daily >>> index happens it goes into 'staging', then staging is swapped into >>> 'live'. I can see how to do this sort of thing over http, but I'm >>> using an embedded solr setup via solrJ. Any suggestions on how to >>> proceed? I could just have two solrServer's built from different >>> coreContainers, and then swap the references when I'm ready, but I >>> wonder if there is a better approach. Maybe grab a hold of the >>> CoreAdminHandler? >>> >>> Thanks, >>> Kallin Nagelberg >>> >> >> >> >> -- >> Lance Norskog >> goks...@gmail.com >