okay i install my solr so like how the wiki said. and a new try. here one of my two files:
<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> 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-...-tp27819967p27823287.html Sent from the Solr - User mailing list archive at Nabble.com.