public interface ElasticIndexService
Service interface for managing Elasticsearch indexes.
Modifier and Type | Method and Description |
---|---|
void |
enableUpdateTracking()
Enables update tracking in transactions.
|
void |
resetAll(Instant timestamp)
Resets all indices when the database has been reset.
|
void |
synchronize(String indexName,
Instant timestamp,
boolean deleteOldIndexOnCompletion,
boolean force)
Synchronize a specific index from the database as required.
|
void |
synchronizeAll(Instant timestamp,
boolean deleteOldIndexOnCompletion,
boolean force)
Synchronize all indices from the database as required.
|
void |
waitForSynchronizationCompletion()
Waits for an active synchronization to complete.
|
void resetAll(Instant timestamp)
Resets all indices when the database has been reset.
void enableUpdateTracking()
Enables update tracking in transactions.
This should be called after the system initialisation (including upgrades) has been completed. Before this method is called, changes may be indexed immediately, improving the performance of bulk updates but with a risk that the index will be invalid if a transaction should fail.
void synchronizeAll(Instant timestamp, boolean deleteOldIndexOnCompletion, boolean force)
Synchronize all indices from the database as required.
timestamp
- the current timestampdeleteOldIndexOnCompletion
- true
if the old index should be deletedforce
- true
if a new index should always be createdvoid synchronize(String indexName, Instant timestamp, boolean deleteOldIndexOnCompletion, boolean force)
Synchronize a specific index from the database as required.
indexName
- the active index name (i.e. the alias)timestamp
- the current timestampdeleteOldIndexOnCompletion
- true
if the old index should be deletedforce
- true
if a new index should always be createdvoid waitForSynchronizationCompletion()
Waits for an active synchronization to complete.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.