okay i install my solr so like how the wiki said. and a new try. here one of
my two XML-files:

/var/lib/conf/Catalina/localhost/suggest.xml

<Context docBase="/var/lib/tomcat5.5/solr.war" debug="0" crossContext="true"
>
   <Environment name="solr/home" type="java.lang.String"              
value="/home/sites/my/path/to/Solr/home/cores/suggest" override="true" />
</Context>


should i set name="solr/home" to --> name="$SOLR_HOME" ??? 

id did not find the reason.

Solr Home is set by :
export JAVA_OPTS="$JAVA_OPTS
-Dsolr.solr.home=/home/sites/path/to/home/cores"

in my cores/ home folder ist the serv.xml from my post above.





Jens Kapitza-2 wrote:
> 
> Am 08.03.2010 15:08, schrieb stocki:
>> Hello.
>>
>> is use 2 cores for solr.
>>
>> when is restart my tomcat on debian, tomcat delete my index.
>>    
> you should check your tomcat-setup.
>> is set data.dir to
>> <dataDir>${solr.data.dir:./suggest/data}</dataDir>
>> and
>> <dataDir>${solr.data.dir:./search/data}</dataDir>
>>
>>    
> use an absolute path [you have not set the solr.home path] this is 
> working/tmp dir from tomcat per default.
>> <cores adminPath="/admin/cores">
>>      <core name="search" instanceDir="search"
>> dataDir="/search/data/index"/>
>>      <core name="suggest" instanceDir="suggest"
>> dataDir="/suggest/data/index"/>
>> </cores>
>>
>>    
> is ok. but this is relative from solr.home.
>> so. why is my index only temp ?
>>
>>    
> try to setup solr again.
> http://wiki.apache.org/solr/SolrTomcat
> 
> try to setup with Context fragment.
> 
> Create a Tomcat Context fragment to point /docBase/ to the 
> /$SOLR_HOME/apache-solr-1.3.0.war/ file and /solr/home/ to /$SOLR_HOME/:
> 
> 
> and avoid storing the data in .../tmp/
> 
> 
> 



-- 
View this message in context: 
http://old.nabble.com/Tomcat-save-my-Index-temp-...-tp27819967p27833705.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to