Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What determines whether InstanceDir has a full or relative path?

Tags:

solr

solr4

With Solr 4.x, http://localhost:8983/solr/admin/cores returns an XML description of loaded cores, which indicates the file path location of the instanceDir.

...
<lst name="collection1">
 <str name="name">collection1</str>
 <bool name="isDefaultCore">true</bool>
 <str name="instanceDir">C:\solr\solr-4.10.1\example\solr\collection1\</str>
...

On my Windows 7 PC, this is presented as a full path, but others have reported this as relative path. What factors can cause this value to be presented as a relative path, and is there a way to force this to be presented as a full path?

like image 526
Dan Solovay Avatar asked Oct 29 '22 22:10

Dan Solovay


1 Answers

Can you please confirm if you have set solr.home. Please check this Solr Wiki for more details. I hope setting solr.home should resolve the issue.

You can add it as JVM argument

java -Dsolr.solr.home=/your/solr/home/path/here -jar start.jar

Incase of Tomcat, you can also do as below

export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/your/solr/home/path/here"

Thanks

like image 179
RN110 Avatar answered Nov 15 '22 08:11

RN110