Class IndexRearranger


  • public class IndexRearranger
    extends Object
    Copy and rearrange index according to document selectors, from input dir to output dir. Length of documentSelectors determines how many segments there will be

    TODO: another possible (faster) approach to do this is to manipulate FlushPolicy and MergePolicy at indexing time to create small desired segments first and merge them accordingly for details please see: https://markmail.org/message/lbtdntclpnocmfuf