/** * Split source index into multiple parts. * @param input source index, can be read-only, can have deletions, can have * multiple segments (or multiple readers). * @param outputs list of directories where the output parts will be stored. * @param seq if true, then the source index will be split into equal * increasing ranges of document id-s. If false, source document id-s will be * assigned in a deterministic round-robin fashion to one of the output splits. * @throws IOException * @deprecated use {@link #split(Version, IndexReader, Directory[], boolean)} instead. * This method will be removed in Lucene 4.0. */ @Deprecated public void split(IndexReader input, Directory[] outputs, boolean seq) throws IOException { split(Version.LUCENE_CURRENT, input, outputs, seq); }
input = new MultiReader(indexes.toArray(new IndexReader[indexes.size()])); splitter.split(input, dirs, seq);
input = new MultiReader(indexes.toArray(new IndexReader[indexes.size()])); splitter.split(Version.LUCENE_CURRENT, input, dirs, seq);
input = new MultiReader(indexes.toArray(new IndexReader[indexes.size()])); splitter.split(input, dirs, seq);
input = new MultiReader(indexes.toArray(new IndexReader[indexes.size()])); splitter.split(input, dirs, seq);