Re: Load cores without restarting/reloading Solr
Can some one please answer this. Is there a way of creating/adding a core and starting it without having to reload Solr ?
RE: Re: Load cores without restarting/reloading Solr
http://wiki.apache.org/solr/CoreAdmin -Original message- From: Karthik K karthikkato...@gmail.com Sent: Thu 05-08-2010 12:00 To: solr-user@lucene.apache.org; Subject: Re: Load cores without restarting/reloading Solr Can some one please answer this. Is there a way of creating/adding a core and starting it without having to reload Solr ?
Re: Load cores without restarting/reloading Solr
On 8/5/10 5:59 AM, Karthik K wrote: Can some one please answer this. Is there a way of creating/adding a core and starting it without having to reload Solr ? Yes, see http://wiki.apache.org/solr/CoreAdmin - Mark lucidimagination.com
Re: Load cores without restarting/reloading Solr
Hi Peter We are using the packaged Ubuntu Server (10.04 LTS) versions of Tomcat6 and Solr1.4 and running a single instance of Solr with multiple cores. Regards Andrew On 20 July 2010 19:47, Peter Karich peat...@yahoo.de wrote: Hi Andrew, the whole tomcat shouldn't fail on restart if only one core fails. We are using the setup described here: http://wiki.apache.org/solr/SolrTomcat With the help of several different Tomcat Context xml files (under conf/Catalina/localhost/) the cores should be independent webapps: A different data directory (+config) and even a different solr version is possible. Or are you using the same setup? Regards, Peter. Hi Sorry, it wasn't very clear was it? [?] Yes, I use a 'template' core that isn't used and create a copy of this on the command line. I then edit the newcore/conf/solrconfig.xml and set the data path, add data-import sections etc and then I edit the solr.home/solr.xml and add the core name directory to that. I then go to the Tomcat manager/html and reload Solr. The problem I get is that if I have broken something in the new core Solr (correctly) doesn't reload and the other cores aren't then working. I don't need replication just yet but I will be looking into that eventually. Regards Andrew On 20 July 2010 10:32, Peter Karich peat...@yahoo.de wrote: Hi Andrew, I didn't correctly understand what you are trying to do with 'copying'? Just use one core as a template or use it to replicate data? You can reload only one application via: http://localhost/manager/html/reload?path=/yourapp (if you do this often you need to increase the PermGen space) You can replicate a core: http://wiki.apache.org/solr/SolrReplication Regards, Peter. Hi We have a few cores set up for separate sites and one of these is in use constantly. When I add a new core I can currently copying one of the other cores and renaming it, changing the conf etc and then reloading Solr via the tomcat manager. However, if something goes wrong then the other cores stop working until I have resolved the problem. My questions are: 1) Is using a separate core for different sites the correct method? 2) Is there a way of creating a core and starting it without having to reload Solr or restart tomcat? 3) I've looked at the Solr Cores CREATE handler but from what I gather, I need to create the core folder and edit the solr.xml first before loading the core with action=CREATE. Is that correct? Regards Andrew
Load cores without restarting/reloading Solr
Hi We have a few cores set up for separate sites and one of these is in use constantly. When I add a new core I can currently copying one of the other cores and renaming it, changing the conf etc and then reloading Solr via the tomcat manager. However, if something goes wrong then the other cores stop working until I have resolved the problem. My questions are: 1) Is using a separate core for different sites the correct method? 2) Is there a way of creating a core and starting it without having to reload Solr or restart tomcat? 3) I've looked at the Solr Cores CREATE handler but from what I gather, I need to create the core folder and edit the solr.xml first before loading the core with action=CREATE. Is that correct? Regards Andrew
Re: Load cores without restarting/reloading Solr
Hi Andrew, I didn't correctly understand what you are trying to do with 'copying'? Just use one core as a template or use it to replicate data? You can reload only one application via: http://localhost/manager/html/reload?path=/yourapp (if you do this often you need to increase the PermGen space) You can replicate a core: http://wiki.apache.org/solr/SolrReplication Regards, Peter. Hi We have a few cores set up for separate sites and one of these is in use constantly. When I add a new core I can currently copying one of the other cores and renaming it, changing the conf etc and then reloading Solr via the tomcat manager. However, if something goes wrong then the other cores stop working until I have resolved the problem. My questions are: 1) Is using a separate core for different sites the correct method? 2) Is there a way of creating a core and starting it without having to reload Solr or restart tomcat? 3) I've looked at the Solr Cores CREATE handler but from what I gather, I need to create the core folder and edit the solr.xml first before loading the core with action=CREATE. Is that correct? Regards Andrew -- http://karussell.wordpress.com/
Re: Load cores without restarting/reloading Solr
Hi Sorry, it wasn't very clear was it? [?] Yes, I use a 'template' core that isn't used and create a copy of this on the command line. I then edit the newcore/conf/solrconfig.xml and set the data path, add data-import sections etc and then I edit the solr.home/solr.xml and add the core name directory to that. I then go to the Tomcat manager/html and reload Solr. The problem I get is that if I have broken something in the new core Solr (correctly) doesn't reload and the other cores aren't then working. I don't need replication just yet but I will be looking into that eventually. Regards Andrew On 20 July 2010 10:32, Peter Karich peat...@yahoo.de wrote: Hi Andrew, I didn't correctly understand what you are trying to do with 'copying'? Just use one core as a template or use it to replicate data? You can reload only one application via: http://localhost/manager/html/reload?path=/yourapp (if you do this often you need to increase the PermGen space) You can replicate a core: http://wiki.apache.org/solr/SolrReplication Regards, Peter. Hi We have a few cores set up for separate sites and one of these is in use constantly. When I add a new core I can currently copying one of the other cores and renaming it, changing the conf etc and then reloading Solr via the tomcat manager. However, if something goes wrong then the other cores stop working until I have resolved the problem. My questions are: 1) Is using a separate core for different sites the correct method? 2) Is there a way of creating a core and starting it without having to reload Solr or restart tomcat? 3) I've looked at the Solr Cores CREATE handler but from what I gather, I need to create the core folder and edit the solr.xml first before loading the core with action=CREATE. Is that correct? Regards Andrew -- http://karussell.wordpress.com/
Re: Load cores without restarting/reloading Solr
Hi Andrew, the whole tomcat shouldn't fail on restart if only one core fails. We are using the setup described here: http://wiki.apache.org/solr/SolrTomcat With the help of several different Tomcat Context xml files (under conf/Catalina/localhost/) the cores should be independent webapps: A different data directory (+config) and even a different solr version is possible. Or are you using the same setup? Regards, Peter. Hi Sorry, it wasn't very clear was it? [?] Yes, I use a 'template' core that isn't used and create a copy of this on the command line. I then edit the newcore/conf/solrconfig.xml and set the data path, add data-import sections etc and then I edit the solr.home/solr.xml and add the core name directory to that. I then go to the Tomcat manager/html and reload Solr. The problem I get is that if I have broken something in the new core Solr (correctly) doesn't reload and the other cores aren't then working. I don't need replication just yet but I will be looking into that eventually. Regards Andrew On 20 July 2010 10:32, Peter Karich peat...@yahoo.de wrote: Hi Andrew, I didn't correctly understand what you are trying to do with 'copying'? Just use one core as a template or use it to replicate data? You can reload only one application via: http://localhost/manager/html/reload?path=/yourapp (if you do this often you need to increase the PermGen space) You can replicate a core: http://wiki.apache.org/solr/SolrReplication Regards, Peter. Hi We have a few cores set up for separate sites and one of these is in use constantly. When I add a new core I can currently copying one of the other cores and renaming it, changing the conf etc and then reloading Solr via the tomcat manager. However, if something goes wrong then the other cores stop working until I have resolved the problem. My questions are: 1) Is using a separate core for different sites the correct method? 2) Is there a way of creating a core and starting it without having to reload Solr or restart tomcat? 3) I've looked at the Solr Cores CREATE handler but from what I gather, I need to create the core folder and edit the solr.xml first before loading the core with action=CREATE. Is that correct? Regards Andrew