Re: change data dir location
- It should be possible to specify dataDir directly for a core in solr.xml (over and above specifying it as a variable). It should also be possible to pass the dataDir as a request parameter while creating a core through the REST API. - A simple scenario which requires this feature is when the location of the data directory depends on runtime parameters (such as free disk space or number of directories inside a directory). - You could accomplish this by using symlinks if u r running Solr under UNIX -- View this message in context: http://www.nabble.com/change-data-dir-location-tp23992946p23996245.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: change data dir location
set the dataDir value in solrconfig.xml to what you like On Fri, Jun 12, 2009 at 10:38 AM, Ashish Pashish.ping...@gmail.com wrote: I want to change data dir location and not use solrConfig.xml. So on windows I removed dataDir xonfiguration from solrConfig.xml and tried setting 'solr.data.dir' system property to my location. But it looks like solr is not picking up this property on windows. Anybody experienced the same??? Please share... Thanks, Ashish -- View this message in context: http://www.nabble.com/change-data-dir-location-tp23992946p23992946.html Sent from the Solr - User mailing list archive at Nabble.com. -- - Noble Paul | Principal Engineer| AOL | http://aol.com
Re: change data dir location
I don't want to set in solrConfig.xml. I want solr to take from my config file or from system property. Thanks, Ashish Noble Paul നോബിള് नोब्ळ्-2 wrote: set the dataDir value in solrconfig.xml to what you like On Fri, Jun 12, 2009 at 10:38 AM, Ashish Pashish.ping...@gmail.com wrote: I want to change data dir location and not use solrConfig.xml. So on windows I removed dataDir xonfiguration from solrConfig.xml and tried setting 'solr.data.dir' system property to my location. But it looks like solr is not picking up this property on windows. Anybody experienced the same??? Please share... Thanks, Ashish -- View this message in context: http://www.nabble.com/change-data-dir-location-tp23992946p23992946.html Sent from the Solr - User mailing list archive at Nabble.com. -- - Noble Paul | Principal Engineer| AOL | http://aol.com -- View this message in context: http://www.nabble.com/change-data-dir-location-tp23992946p23993210.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: change data dir location
that is fine. you can use any variable in solrconfig.xml as dataDir${the.solr.data.dir}/dataDir} set the value of the.solr.data.dir as -Dthe.solr.data.dir=%SOME_WINDOWS_PROPERTY% On Fri, Jun 12, 2009 at 11:16 AM, Ashish Pashish.ping...@gmail.com wrote: I don't want to set in solrConfig.xml. I want solr to take from my config file or from system property. Thanks, Ashish Noble Paul നോബിള് नोब्ळ्-2 wrote: set the dataDir value in solrconfig.xml to what you like On Fri, Jun 12, 2009 at 10:38 AM, Ashish Pashish.ping...@gmail.com wrote: I want to change data dir location and not use solrConfig.xml. So on windows I removed dataDir xonfiguration from solrConfig.xml and tried setting 'solr.data.dir' system property to my location. But it looks like solr is not picking up this property on windows. Anybody experienced the same??? Please share... Thanks, Ashish -- View this message in context: http://www.nabble.com/change-data-dir-location-tp23992946p23992946.html Sent from the Solr - User mailing list archive at Nabble.com. -- - Noble Paul | Principal Engineer| AOL | http://aol.com -- View this message in context: http://www.nabble.com/change-data-dir-location-tp23992946p23993210.html Sent from the Solr - User mailing list archive at Nabble.com. -- - Noble Paul | Principal Engineer| AOL | http://aol.com