Thanks for all the help guys. I now have it up and running.
Jon Baer wrote:
I would not use this layout, you are putting important Solr config files
outside onto the docroot (presuming we are looking @ the webapps folder) ...
here is my current Tomcat project (if it helps):
[507][jonbaer.MBP: tomcat]$ pwd
/Users/jonbaer/WORKAREA/SVN_HOME/my-project/tomcat
[508][jonbaer.MBP: tomcat]$ ls
bin conf lib logs solr temp webapps work
[509][jonbaer.MBP: tomcat]$ ls -l solr
total 8
drwxr-xr-x 5 jonbaer staff 170 Apr 15 11:40 core0
drwxr-xr-x 12 jonbaer staff 408 Apr 18 11:57 lib
drwxr-xr-x 5 jonbaer staff 170 Apr 26 10:46 logs
drwxr-xr-x 5 jonbaer staff 170 Apr 15 11:40 core1
-rw-r--r-- 1 jonbaer staff 217 Apr 15 11:40 solr.xml
[510][jonbaer.MBP: tomcat]$ ls -l webapps
total 0
drwxr-xr-x 7 jonbaer staff 238 Apr 16 23:17 solr
[511][jonbaer.MBP: tomcat]$ cat solr/solr.xml
<?xml version='1.0' encoding='UTF-8'?>
<solr sharedLib="lib" persistent="true">
<cores adminPath="/admin/cores">
<core name="core0" instanceDir="core0"/>
<core name="core1" instanceDir="core1"/>
</cores>
</solr>
[512][jonbaer.MBP: tomcat]$ cat conf/server.xml
...
<Context path="/solr" debug="0" docBase="solr">
<Environment name="solr/home" type="java.lang.String" value="solr"
override="true" />
<Environment name="solr/user" type="java.lang.String" value="admin"
override="true" />
<Environment name="solr/pass" type="java.lang.String" value="admin"
override="true" />
</Context>
...
- Jon
On Apr 27, 2010, at 8:26 AM, Dimitrios Sferopoulos wrote:
Hi all,
I have been trying to set up multiple cores on SOLR that runs under Apache
Tomcat but haven't had much luck. I followed the instruction on the wiki but
that didn't help much.
This is what I get when I browse in:
http://devel.edina.ac.uk:20232/solr/admin/cores
My SOLR directory structure is:
solr
admin
home
bin
conf
data
solr.xml
multicore
core0
data
conf
core1
data
conf
META-INF
WEB-INF
and my solr.xml is:
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true">
<cores adminPath="/admin/cores">
<core name="core0" instanceDir="core0" />
<core name="core1" instanceDir="core1" />
</cores>
</solr>
Could someone let me know what the correct directory structure is as well as
the solr.xml? Are there any environmental variables that I need to set for
multiplecores to work?
Thanks
Dimitrios
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.