| | |
| | | |
| | | try |
| | | { |
| | | if (Importer.mustClearBackend(importConfig, cfg)) |
| | | if (OnDiskMergeBufferImporter.mustClearBackend(importConfig, cfg)) |
| | | { |
| | | try |
| | | { |
| | |
| | | private ImportStrategy getImportStrategy() throws DirectoryException |
| | | { |
| | | // TODO JNR may call new SuccessiveAddsImportStrategy() depending on configured import strategy |
| | | return new Importer.StrategyImpl(cfg); |
| | | return new OnDiskMergeBufferImporter.StrategyImpl(cfg); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | |
| | | { |
| | | rootContainer = initializeRootContainer(); |
| | | } |
| | | new Importer(rootContainer, rebuildConfig, cfg, serverContext).rebuildIndexes(); |
| | | new OnDiskMergeBufferImporter(rootContainer, rebuildConfig, cfg, serverContext).rebuildIndexes(); |
| | | } |
| | | catch (ExecutionException execEx) |
| | | { |