Re: How to swap two cores and then unload one of them

2016-09-12 Thread Fabrizio Fortino
versions (starting with 5 > I think) you should not use the coreContainer directly but instead go > through the HTTP API (which also supports the swap operation) or use SolrJ. > > Best, > Georg > > Fabrizio Fortino schrieb am Mo., 29. Aug. 2016 11:53: > > > I have a NO

How to swap two cores and then unload one of them

2016-08-29 Thread Fabrizio Fortino
I have a NON-Cloud Solr and I am trying to use the swap functionality to push an updated core into production without downtime. Here are the steps I am executing 1. Solr is up and running with a single core (name = 'livecore') 2. I create a new core with the latest version of my documents (name =

solr 5.5: swap + unload does not work

2016-03-03 Thread Fabrizio Fortino
I have created a Solr CoreAdminHandler extension with the goal to swap two cores and remove the old one. My code looks like this: SolrCore core = coreContainer.create("newcore", coreProps) coreContainer.swap("newcore", "livecore") // the old livecore is now newcore, so unload it and remove all th