Re: problem with incremental update in lucene

2010-12-01 Thread Yakob
On 12/1/10, Ian Lea wrote: > It's probably this line: > > Directory.copy(ramDir, FSDirectory.open(indexDir), false); // 3 > > the javadocs say > > Copy contents of a directory src to a directory dest. If a file in src > already exists in dest then the one in dest will be blindly > overwritten. > >

Re: problem with incremental update in lucene

2010-12-01 Thread Ian Lea
It's probably this line: Directory.copy(ramDir, FSDirectory.open(indexDir), false); // 3 the javadocs say Copy contents of a directory src to a directory dest. If a file in src already exists in dest then the one in dest will be blindly overwritten. I don't think you gain anything by using an i

problem with incremental update in lucene

2010-11-30 Thread Yakob
I am creating a program that can index many text files in different folder. so that's mean every folder that has text files get indexed and its index are stored in another folder. so this another folder acts like a universal index of all files in my computer. and I am using lucene to achieve this b