public class IndexRearranger extends Object
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
Modifier and Type | Class and Description |
---|---|
static interface |
IndexRearranger.DocumentSelector
Select document within a CodecReader
|
Modifier and Type | Field and Description |
---|---|
protected IndexWriterConfig |
config |
protected List<IndexRearranger.DocumentSelector> |
documentSelectors |
protected Directory |
input |
protected Directory |
output |
Constructor and Description |
---|
IndexRearranger(Directory input,
Directory output,
IndexWriterConfig config,
List<IndexRearranger.DocumentSelector> documentSelectors) |
protected final Directory input
protected final Directory output
protected final IndexWriterConfig config
protected final List<IndexRearranger.DocumentSelector> documentSelectors
public IndexRearranger(Directory input, Directory output, IndexWriterConfig config, List<IndexRearranger.DocumentSelector> documentSelectors)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.