public interface ReindexManager
| Modifier and Type | Method and Description |
|---|---|
void |
reindex(String alias,
Collection<ReindexEntityPageHandler> reindexEntityPageHandlers)
Uses
ReindexEntityPageHandler(s) to reindex data, page by page. |
default void |
reindex(String alias,
ReindexEntityPageHandler reindexEntityPageHandler)
Uses a
ReindexEntityPageHandler to reindex data, page by page. |
void |
reindex(String alias,
ReindexRunnable reindexRunnable)
Executes the provided
ReindexRunnable (containing the actual reindex logic), while taking care before
and after the execution to properly housekeep the indices:
1. |
void reindex(String alias, ReindexRunnable reindexRunnable)
ReindexRunnable (containing the actual reindex logic), while taking care before
and after the execution to properly housekeep the indices:
1. String originalIndexName = getTheRealIndexName
2. Delete the alias for the index
3. create a new index (with prefix)
4. Execute custom reindex logic
5. Delete the original index
Uses a generic ReindexRunnable that can contain any logic.default void reindex(String alias, ReindexEntityPageHandler reindexEntityPageHandler)
ReindexEntityPageHandler to reindex data, page by page.
Internally, a new ReindexRunnable will be created and the reindex(String, ReindexRunnable) will be called.void reindex(String alias, Collection<ReindexEntityPageHandler> reindexEntityPageHandlers)
ReindexEntityPageHandler(s) to reindex data, page by page.
Internally, a new ReindexRunnable will be created and the reindex(String, ReindexRunnable) will be called.Copyright © 2019. All rights reserved.