Interface FullReindexManager
- All Known Implementing Classes:
- LuceneFullReindexManager
Responsible for triggering full reindex operation with necessary state management. Please note, this manager is
 not tied to single particular index, it works globally on all 
SearchIndex.- Since:
- 7.9.0
- 
Method SummaryModifier and TypeMethodDescription@Nullable ReIndexTaskRetrieve the last reindexing task.booleanGets whether journal flush is currently suspendedbooleanReturns true if the current node is currently performing reindexing.reIndex()Triggers a system-wide reindex of all content and changes.reIndex(EnumSet<ReIndexOption> options) Triggers a system-wide reindex with specified options.reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery) Triggers a system-wide re-index where entities are loaded using providedsearchQuery.reIndex(EnumSet<ReIndexOption> options, @NonNull List<String> spaceKeys) Triggers a re-index where entities are loaded using providedsearchQuery.voidDrop everything from the search index.
- 
Method Details- 
reIndexReIndexTask reIndex()Triggers a system-wide reindex of all content and changes. Entities are loaded from the database. If reindex is already in progress, returns its stats.
- 
reIndexTriggers a system-wide reindex with specified options. Entities are loaded from the database. If reindex is already in progress, returns its stats.
- 
reIndexTriggers a system-wide re-index where entities are loaded using providedsearchQuery. If reindex is already in progress, returns its stats.- Parameters:
- options- Optional. Allows a subset of all searchable content to be re-indexed.
- searchQuery- A query that is used to load the entities to be re-indexed.
 
- 
getLastReindexingTask@Nullable ReIndexTask getLastReindexingTask()Retrieve the last reindexing task. This task will provide all of the information required to track the progress/state of the reindexing process.- Returns:
- the last executed reindex task, or null if no reindex has occured.
 
- 
isReIndexingboolean isReIndexing()Returns true if the current node is currently performing reindexing.- Returns:
- true if full reindex is in progress, false otherwise.
 
- 
unIndexAllvoid unIndexAll()Drop everything from the search index. If the operation can't be performed, does nothing.
- 
reIndexTriggers a re-index where entities are loaded using providedsearchQuery. If reindex is already in progress, returns its stats.- Parameters:
- options- Optional. Allows a subset of all searchable content to be re-indexed.
- spaceKeys- Keys of the spaces to be re-indexed
- Returns:
- the ReIndexTask
- Since:
- 8.2.0
 
- 
isJournalFlushSuspendedboolean isJournalFlushSuspended()Gets whether journal flush is currently suspended- Returns:
- true if journal flush is currently suspended
- Since:
- 9.0
 
 
-