ideally you should be able to us the variable ${solr.core.instanceDir}
but as I checked the code that is not being set for a single core deployment. are you using single core? On Fri, Sep 4, 2009 at 9:16 PM, Archon810<archon...@gmail.com> wrote: > > OK, so I can't access it by ${solr.home}, but is there a way to access it? > After all, it's a variable defined in JNDI, shouldn't there be a way to > refer to it? > > Also, what about the INFO message that says it can't find /solr/home, while > the instructions refer to solr/home ? > > > > Noble Paul നോബിള് नोब्ळ्-2 wrote: >> >> ${solr.home} is used for documentation purpose. It is not set as a >> variable. >> >> On Fri, Sep 4, 2009 at 3:58 PM, Archon810<archon...@gmail.com> wrote: >>> >>> I saw it being used in the default solrconfig.xml in this phrase: >>> If you wish to hide files under ${solr.home}/conf, explicitly register >>> the >>> ShowFileRequestHandler using... >>> >>> It was only natural to assume it would work for something as trivial as >>> dataDir. >>> >>> So, there's no way to refer to the solr/home value defined in JNDI? >>> >>> >>> Noble Paul നോബിള് नोब्ळ्-2 wrote: >>>> >>>> it is nowhere mentioned that you can use a variable ${solr.home} in >>>> your solrconfig.xml. There is a bug related to this issue >>>> https://issues.apache.org/jira/browse/SOLR-1267 >>>> >>>> On Fri, Sep 4, 2009 at 5:47 AM, Archon810<archon...@gmail.com> wrote: >>>>> >>>>> Here's my problem. >>>>> >>>>> I'm trying to follow a multi Solr setup, straight from the Solr wiki - >>>>> http://wiki.apache.org/solr/SolrTomcat#head-024d7e11209030f1dbcac9974e55106abae837ac. >>>>> >>>>> Here's the relevant code: >>>>> <Context docBase="/some/path/solr.war" debug="0" crossContext="true" >>>>> > >>>>> <Environment name="solr/home" type="java.lang.String" >>>>> value="/some/path/solr1home" override="true" /> >>>>> </Context> >>>>> >>>>> Now I want to set the Solr <dataDir> in solrconfig.xml, relative >>>>> to >>>>> the solr home property. The instructions >>>>> http://wiki.apache.org/solr/SolrConfigXml#head-e8fbf2d748d90c5900aac712d0e3385ced5bd128 >>>>> say <dataDir> is used to specify an alternate directory to hold >>>>> all >>>>> index data other than the default ./data under the Solr home. If >>>>> replication >>>>> is in use, this should match the replication configuration. If this >>>>> directory is not absolute, then it is relative to the current working >>>>> directory of the servlet container. >>>>> >>>>> However, no matter how I try to set the dataDir property, solr home is >>>>> not >>>>> being found. For example, >>>>> <dataDir>${solr.home}/datarrrr</dataDir> >>>>> >>>>> What's even more confusing are these INFO notices in the log: >>>>> INFO: No /solr/home in JNDI >>>>> Sep 3, 2009 4:33:26 PM org.apache.solr.core.SolrResourceLoader >>>>> locateSolrHome >>>>> INFO: solr home defaulted to 'solr/' (could not find system property or >>>>> JNDI) >>>>> >>>>> The JNDI instructions instruct to specify "solr/home", the log >>>>> complains >>>>> about "/solr/home" (extra slash), the solrconfig.xml file seems to >>>>> expect >>>>> ${solr.home} - how more confusing can it get? >>>>> >>>>> This person is having the same issue: >>>>> http://mysolr.com/tips/setting-solr-home-solrhome-in-jndi-on-tomcat-55/ >>>>> >>>>> So, how does one refer to solr home from solrconfig.xml in a JNDI >>>>> configuration scenario? Also, is there a way to debug/see variables >>>>> that >>>>> are >>>>> defined in a specific context, such as solrconfig.xml? I feel like I'm >>>>> completely blind here. >>>>> >>>>> Thank you! >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/Solr%2C-JNDI-config%2C-dataDir%2C-and-solr-home-problem-tp25286277p25286277.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/Solr%2C-JNDI-config%2C-dataDir%2C-and-solr-home-problem-tp25286277p25292025.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/Solr%2C-JNDI-config%2C-dataDir%2C-and-solr-home-problem-tp25286277p25296862.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com