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