hi all,

Does solrj support "swapping cores"?

One of our developers had initially tried swapping solr cores (e.g. core0
and core1) using the solrj api, but it failed. (don't have the exact error)
He susequently replaced the call with straight http (i.e. http client).

Unfortunately I don't have the exact error in front of me...

Solrj code:

               CoreAdminRequest car = new CoreAdminRequest();
               car.setCoreName("production");
               car.setOtherCoreName("reindex");
               car.setAction(CoreAdminParams.CoreAdminAction.SWAP);

              SolrServer solrServer = SolrUtil.getSolrServer();
              car.process(solrServer);
              solrServer.commit();

Finally, can someone comment on the solrj javadoc on CoreAdminRequest:
 * This class is experimental and subject to change.

thanks,

will

Reply via email to