lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Israel Ekpo <israele...@gmail.com>
Subject Re: Documents are deleted when Solr is restarted
Date Tue, 26 Oct 2010 15:30:57 GMT
The Solr home is the -Dsolr.solr.home Java System property

Also make sure that -Dsolr.data.dir is define for your data directory, if it
is not already defined in the solrconfig.xml file

On Tue, Oct 26, 2010 at 10:46 AM, Upayavira <uv@odoko.co.uk> wrote:

> You need to watch what you are setting your solr.home to. That is where
> your indexes are being written. Are they getting overwritten/lost
> somehow. Watch the files in that dir while doing a restart.
>
> That's a start at least.
>
> Upayavira
>
> On Tue, 26 Oct 2010 16:40 +0300, "Mackram Raydan" <mackram@gmail.com>
> wrote:
> > Hey everyone,
> >
> > I apologize if this question is rudimentary but it is getting to me and
> > I did not find anything reasonable about it online.
> >
> > So basically I have a Solr 1.4.1 setup behind Tomcat 6. I used the
> > SolrTomcat wiki page to setup. The system works exactly the way I want
> > it (proper search, highlighting, etc...). The problem however is when I
> > restart my Tomcat server all the data in Solr (ie the index) is simply
> > lost. The admin shows me the number of docs is 0 when it was before in
> > the thousands.
> >
> > Can someone please help me understand why the above is happening and how
> > can I workaround it if possible?
> >
> > Big thanks for any help you can send my way.
> >
> > Regards,
> >
> > Mackram
> >
>



-- 
°O°
"Good Enough" is not good enough.
To give anything less than your best is to sacrifice the gift.
Quality First. Measure Twice. Cut Once.
http://www.israelekpo.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message