lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject Re: How to separate one index into multiple?
Date Sun, 19 Feb 2012 13:41:45 GMT
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

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