Class MultiPassIndexSplitter

    • Method Detail

      • split

        public void split(IndexReader in,
                          Directory[] outputs,
                          boolean seq)
                   throws IOException
        Split source index into multiple parts.
        in - source index, can have deletions, can have multiple segments (or multiple readers).
        outputs - list of directories where the output parts will be stored.
        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.
        IOException - If there is a low-level I/O error