I think you could do as follows.  taking splitting it to 3 indexes for
example.
you can copy the index 3 times.
for copy 1
  for(int i=0;i<reader1.maxDocs();i+=3){
      reader1.delete(i);
  }
for copy
  for(int i=1;i<reader2.maxDocs();i+=3){
      reader2.delete(i);
 }
....
 and then optimize these 3 indexes

Reply via email to