Interface Reindexer
- All Known Implementing Classes:
AbstractReindexer
,BlueGreenReindexer
,PropagableReindexer
@Internal
public interface Reindexer
Responsible for triggering re-indexing / rebuilding of the Confluence search index.
Warning: Client code should use IndexManager.reIndex()
instead of this class, because it will
ensure proper locking is in place. Calling ReIndexer
directly can result to races with other
index operations.
- Since:
- 8.0 - This class is for internal use only. Please use
IndexManager.reIndex()
in plugins instead.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Triggers a system wide re-index.void
reIndex
(EnumSet<ReIndexOption> options, @NonNull SearchQuery searchQuery, Progress progress) Triggers a system wide re-index all entities loaded from searchQuery.void
reIndex
(EnumSet<ReIndexOption> options, Progress progress) Triggers a system wide re-index all entities from the database.void
Triggers a re-index all entities from a space.boolean
Gets whether journal flush should be suspended when this reindexer is performing a reindex.
-
Method Details
-
reIndex
Triggers a system wide re-index.- Parameters:
progress
- object to track progress of re-index.
-
reIndex
Triggers a system wide re-index all entities from the database.- Parameters:
options
- Optional. Allows a subset of all searchable content to be re-indexed.progress
- object to track progress of re-index.
-
reIndex
Triggers a system wide re-index all entities loaded from searchQuery.- Parameters:
options
- Optional. Allows a subset of all searchable content to be re-indexed.searchQuery
- A query that may be used to load the entities to be re-indexed.progress
- object to track progress of re-index.
-
reIndex
Triggers a re-index all entities from a space.- Parameters:
options
- Optional. Allows a subset of all searchable content to be re-indexed.spaceKeys
- The keys of the spaces where the entities are loaded from.progress
- object to track progress of re-index.
-
shouldSuspendJournalFlush
boolean shouldSuspendJournalFlush()Gets whether journal flush should be suspended when this reindexer is performing a reindex.- Returns:
- true if journal flush should be suspended when this reindexer is performing a reindex
- Since:
- 9.0
-