RE: SolrJ and Multi Core Set up

2010-09-05 Thread Ephraim Ofir
iginal Message- From: Shaun Campbell [mailto:campbell.sh...@gmail.com] Sent: Friday, September 03, 2010 2:41 PM To: solr-user@lucene.apache.org Subject: Re: SolrJ and Multi Core Set up Thanks Chantal I hadn't spotted that that's a big help. Thank you. Shaun On 3 September 2010 12:31, C

Re: SolrJ and Multi Core Set up

2010-09-03 Thread Shaun Campbell
Thanks Chantal I hadn't spotted that that's a big help. Thank you. Shaun On 3 September 2010 12:31, Chantal Ackermann < chantal.ackerm...@btelligent.de> wrote: > Hi Shaun, > > you create the SolrServer using multicore by just adding the core to the > URL. You don't need to add anything with Solr

Re: SolrJ and Multi Core Set up

2010-09-03 Thread Chantal Ackermann
Hi Shaun, you create the SolrServer using multicore by just adding the core to the URL. You don't need to add anything with SolrQuery. URL url = new URL(new URL(solrBaseUrl), coreName); CommonsHttpSolrServer server = new CommonsHttpSolrServer(url); Concerning the "default" core thing - I wouldn'

SolrJ and Multi Core Set up

2010-09-03 Thread Shaun Campbell
I'm writing a client using SolrJ and was wondering how to handle a multi core installation. We want to use the facility to rebuild the index on one of the cores at a scheduled time and then use the SWAP facility to switch the "live" core to the newly rebuilt core. I think I can do the SWAP with C