Re: ClassCastException when writing to index writer

2008-10-05 Thread Paul Chan
I have tried to recompile Lucene 2.3.2 under my environment (SUN JDK 1.6) and it still doesn't work. I am beginning to think that maybe there is something wrong with lucene's build script. My TestVector class's clone() method works without a hitch, but SegmentInfos' clone() method doesnt work at

Re: Single searcher vs Multi Searcher

2008-10-05 Thread Ganesh
Hello Anshum, My index is growing 1 million documents per day. Initially i planned to have a single database but the sorting of one or more fields consumes more RAM. Whether sharding the index would also consume the same. My application should co-exist with other application of my product and

Re: ClassCastException when writing to index writer

2008-10-05 Thread Paul Chan
Thank you all for your input. However, this is what I have discovered so far: - I tried running the test that Edwin suggested and it failed for me in my environment (Lucene 2.3.2, Windows XP, SUN JDK 1.5 or 1.6) e.g. SegmentInfos sis = new SegmentInfos(); SegmentInfos sis2 = (Segment

RE: Memory eaten up by String, Term and TermInfo?

2008-10-05 Thread Peter Cheng
I have confirmed that the OutOfMemoryError is not Lucene's problem. It's just because JVM failed to perform GC when necessary, and I don't know why. To fix this, I started another thread to call GC every six hours, and problems got solved. Thank you all. Gong > -Original Message- > From: